相关文章推荐
强悍的牙膏  ·  MATLAB连接X310 - 知乎·  8 月前    · 
卖萌的登山鞋  ·  Django 教程 11:部署 ...·  8 月前    · 
卖萌的烤面包  ·  9.2 ...·  1 年前    · 
欢快的南瓜  ·  c++ ...·  1 年前    · 
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

raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message:

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)
                driver.find_element_by_xpath("//input[@id='event_name']").send_keys(list_item.text) : You are using the solution from my answer to your previous question. Can you give me a proper feedback please?
– undetected Selenium
                Dec 2, 2021 at 12:40
                the solution that gives me I have already used. I know it before and thanks for your help kindly help me with this expectation if you know how we solved this. thanks
– Arslan Hassan
                Dec 2, 2021 at 13:05
        

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.