admin管理员组

文章数量:1023242

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.

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.

本文标签: