How to refresh the page in Selenium

Java

In Java, the driver’s navigate() method returns a Navigation object, which has a refresh() method.

driver.navigate().refresh();

Python

In Python, the driver has a refresh() method.

driver.refresh

C#

In C#, the driver’s Navigate() method returns an INavigation object, which has a Refresh() method.

driver.Navigate().Refresh();