Refreshing Web Page By WebDriver When Waiting For Specific Condition Refreshing Web Page By WebDriver When Waiting For Specific Condition selenium selenium

Refreshing Web Page By WebDriver When Waiting For Specific Condition


In Java or JavaScript:

driver.navigate().refresh();

This should refresh page.


In Python there is a method for doing this: driver.refresh(). It may not be the same in Java.

Alternatively, you could driver.get("http://foo.bar");, although I think the refresh method should work just fine.


In python

Using built in method

driver.refresh()

or, executing JavaScript

driver.execute_script("location.reload()")