Python Forum
Unable to locate element no such element
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to locate element no such element
#1
<td> 
    <div class="input-icon">
        <i class="fa fa-user"></i>
        <script type="text/javascript">
            if (getQueryStringParameter("Back") == 1) {                        
                document.write("<input class='form-control placeholder-no-fix' type='text' autocomplete='off' placeholder='User ID' name='tempusername' id='username' autocomplete='off' size='14' maxlength='12' value='' /> <input type='hidden' name='username'>");
            } else {
                document.write("<input class='form-control placeholder-no-fix' type='text' autocomplete='off' placeholder='User ID' name='tempusername'  autocomplete='off' size='14' maxlength='12' value='' /><input type='hidden' name='username'>");
            }
        </script>
        <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="User ID" name="tempusername" size="14" maxlength="12" value=""><input type="hidden" name="username">
    </div>
 </td>
Capture

time.sleep(5)
driver.find_element_by_name('//*[@id="LoginId"]/table/tbody/tr[3]/td/div/input[1]').send_keys("username1")
I did tried wait 20 seconds which is more than enough to let the page finish loaded.
But the result still same. I also tried get the element by name but result the same tho.
Please advise.
Reply


Messages In This Thread
Unable to locate element no such element - by gahhon - Feb-14-2019, 04:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fixture not returning webdriver element Nik1811 1 212 Apr-15-2024, 04:39 PM
Last Post: Nik1811
  element in list detection problem jacksfrustration 5 391 Apr-11-2024, 05:44 PM
Last Post: deanhystad
  Elegant way to apply each element of an array to a dataframe? sawtooth500 7 427 Mar-29-2024, 05:51 PM
Last Post: deanhystad
  If a set element has digits in the element tester_V 3 326 Mar-25-2024, 04:43 PM
Last Post: deanhystad
  Variable for the value element in the index function?? Learner1 8 666 Jan-20-2024, 09:20 PM
Last Post: Learner1
  Searche each element of each tuple based 3 numbes zinho 8 888 Dec-11-2023, 05:14 PM
Last Post: zinho
  list in dicitonary element problem jacksfrustration 3 713 Oct-14-2023, 03:37 PM
Last Post: deanhystad
  search an element in pandas series learningPython 5 1,426 Apr-30-2023, 08:34 AM
Last Post: learningPython
Question Inserting Numerical Value to the Element in Optionlist and Printing it into Entry drbilgehanbakirhan 1 818 Jan-30-2023, 05:16 AM
Last Post: deanhystad
  How to separate the values in an element to add them monty024 4 1,036 Jan-23-2023, 04:28 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020