New answers tagged testng
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 ...
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 ...
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<>...
Top 50 recent answers are included
Related Tags
testng × 371selenium-webdriver × 289
java × 156
automated-testing × 146
selenium2 × 29
test-automation-framework × 21
jenkins × 17
eclipse × 16
maven × 15
appium × 14
cucumber × 13
assert × 11
junit × 10
test-report × 9
excel × 7
page-factory × 7
browser-automation × 6
page-objects × 6
chromedriver × 6
data-driven × 6
pom × 6
test-management × 5
test-design × 5
xpath × 5
mobile-automation × 5