I have a application which required selenium to navigate to next page and verify if required information found, it not found than come back to same page and than click on next user information and verify required information is found and this continue till we have users links.
My process: I have created List of all the user links to run the enhance for loop. Now, when user click on first user link and if information not found than selenium is coming back to same page, and when try to click on second user, it give exception 'org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document'. I tried using back() method but not working. Is there any work around to this?
Thanks, Karim