Why getText does not always return text | Selenium Forum
M
Posted on 28/04/2016
In module 13, part 3,
System.out.println("fifth link text is "+ fifLink.getText()); does not always return text. Sometimes, i get the text printed in the console, sometimes i get below error. How to fix this?

M
Replied on 29/04/2016

stale element exception are notoriously hard to fix.

try this q/a http://stackoverflow.com/questions/12967541/how-to-avoid-staleelementreferenceexception-in-selenium

there are 4 different answer try them all.