1 Answer

0 votes
by
There are multiple ways to refresh a page in selenium

Using driver.navigate().refresh() command as mentioned in the question 45

Using driver.get(“URL”) on the current URL or using driver.getCurrentUrl()

Using driver.navigate().to(“URL”) on the current URL or driver.navigate().to(driver.getCurrentUrl());

Using sendKeys(Keys.F5) on any textbox on the webpage
...