Relative Content

Tag Archive for pythonautomationstaleelementreferenceexception

Why “stale element not found” after wrapping in a loop?

I am looping through google :”gasbuddy + “addresses in inputfile” and click the first link and redirect me to that webpage. It reports “stale element no found” after successfully sent the keys and I see the results loaded in driver. Due to data buffering issue, time.sleep is not working here, so I used webdriverwait, I think this is the only difference between this failed script and my test scrip which works. I attached both scripts here, what is happening to this a[h3] wrap that has all the google results, why it disappeared form DOM?