Module 18 - Stale Element exception on multiple lines | Selenium Forum
M
mp.mca2005 Posted on 23/05/2020

I am getting stale element exception on lines 166, 176,178, 181, even when I am extracting their path again .Please provide me a suitable solution. I am stuck.

Thanks


A
Ashish Replied on 25/05/2020

Let page load 100%

Although its a very crude solution but try putting

Thread.sleep(5000)

Or try to use waitforpagetolod function which I made in videos


M
mp.mca2005 Replied on 30/05/2020

Thanks, I have already used waitforpagetoload before raising my question, but unfortunately that didn't worked. Then as suggested by you, I used Thread.sleep(5000) and now my program is running fine.
Thanks


Related Posts