shivu2012
shivu2012

Reputation: 15

order of list of elements located on a page keep changing on every click in selenium java

I located elements of languages displayed on google search page. I stored them in a list and iterated through the elements and tried to click one by one. But when I click the first element(link), the order of elements shuffles. when selenium tries to iterate through the next element and clicks it, it shows stale element exception. How to handle this situation? We can find the available language below search input box.

Upvotes: 0

Views: 26

Answers (0)

Related Questions