Let’s talk about stale elements

Hi guys!. I have had a lot of problems with stale elements. But what are stale elements?

Let’s talk,

When you load a web page into a broswer, there are elements loading according to the speed of the internet, they are requesting data to the web service to show you as information in your monitor. We must find elements once all the information is loaded or when it is just necessary, in other way you will get the message “stale element”.

If you are validating the state of the link using <a> tag and href attribute, in the beginning of the page you should defined a wait method in order to all the elements load fisrt and then start with the test.

Being a junior automation engineer I can do those suggestions. Thank you in advance.

Leave a Reply

Create your own website, free on WordPress.com.Create your own website.
Start free