Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ajax and Selenium
#2
What is the website so we can tinker with it? And your code so we can just run it.

A couple of things to try in the meantime based on searching....

A StaleElementReferenceException is thrown when the element you were interacting is destroyed and then recreated.
wait.until(ExpectedConditions.stalenessOf(whatever element));
or
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("whatever elemnt")))
Other responses seem to be accessing the problematic element in a loop before throwing the exception
Recommended Tutorials:
Reply


Messages In This Thread
Ajax and Selenium - by ankitjindalbti - May-28-2019, 10:06 PM
RE: Ajax and Selenium - by metulburr - May-28-2019, 10:20 PM
RE: Ajax and Selenium - by ankitjindalbti - May-30-2019, 01:30 AM
RE: Ajax and Selenium - by ankitjindalbti - May-31-2019, 03:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Retrieve data from ajax pthon3 0 1,226 May-29-2022, 10:32 PM
Last Post: pthon3
  POST Reply to Ajax/jQuery (mostly an HTML question) gw1500se 5 2,728 Nov-18-2021, 02:44 PM
Last Post: gw1500se
  Scraping a dynamic data-table in python through AJAX request filozofo 1 3,925 Aug-14-2020, 10:13 AM
Last Post: kashcode
  Flask SelectField using Ajax noah_f 0 2,591 Mar-23-2020, 04:03 PM
Last Post: noah_f
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,673 Nov-03-2017, 08:41 PM
Last Post: metulburr
  AJAX: readyState not as expected pleriche 2 3,449 Aug-08-2017, 08:55 AM
Last Post: pleriche

Forum Jump:

User Panel Messages

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