Selenium: how to ensure back() navigation works as expected across different sites? Selenium: how to ensure back() navigation works as expected across different sites? selenium selenium

Selenium: how to ensure back() navigation works as expected across different sites?


Why don't you store the location of the page that you want to verify, hit a link, use the goBack and then verify location of check the variables (the one you stored and the location of the verify page)?

By the way, if your site uses AJAX I suggest you use the pause function that waits for the AJAX lib. To fully load, or set the speed of your site (maybe combine them together in rare cases).