New answers tagged

0 votes

Stale Element Exception when looping through list of elements

Agree with @krishna: Design something like : try{ // your_steps_to_perform_action } catch(){ // print_your_exception_take_action } finally { // Navigate_back_to_page_A } and understand more ...
user avatar
0 votes

Loop through list of elements and perform a button click

My observation based on details & code you shared : You should NOT use //locate promotional element because if promotional discount is available it will work but what if product/article is not ...
user avatar
0 votes

Stale Element Exception when looping through list of elements

The stale element reference error exception occurs because the referenced web element is no longer attached to the DOM. And by looking at the code, I will try to guess the reason. you have List<>...
user avatar

Top 50 recent answers are included