Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: Element reference not seen before: f8561f1c-43e9-474a-88f3-22b3e0c813b7
I have multiple list data when I enter this data in to list one by one it gives me this exception. if I enter hard code values like send_keys("100") then it works fine. but when want to send values in run time it gives me an exception.
lists = driver.find_elements_by_xpath("//*[@class= 'gradeA']/td[1]")
for list_item in lists:
print(len(lists))
print(list_item.text)
driver.find_element_by_xpath("//span[normalize-space()='Events']").click()
time.sleep(3)
driver.find_element_by_xpath("//span[normalize-space()='Organizer Events']").click()
time.sleep(5)
driver.refresh()
time.sleep(3)
event_code = driver.find_element_by_xpath("//input[@id='event_name']").send_keys(list_item.text)
–
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.