In Selenium RC, I used the following code using Java to update in the browser:
selenium.refresh();
What is the equivalent code for updating in WebDriver?
The following is equivalent code in Selenium WebDriver using Java:
driver.navigate().refresh();
Another way to update with Ctrl + F5 is to use an instance of WebDriver and Actions, as shown below:
Actions actionObject = new Actions(driver); actionObject.keyDown(Keys.CONTROL).sendKeys(Keys.F5).perform();
You can use:
Look here, for example, How to refresh the current web page .