Equivalent code of selenium.refresh() in Selenium WebDriver (Selenium 2) using Java

Nazifa Chowdhury picture Nazifa Chowdhury · Aug 31, 2012 · Viewed 17.7k times · Source

In Selenium RC, I used the following code using Java for refresh on the browser:

selenium.refresh();

What is the equivalent code for refresh in WebDriver?

Answer

Ripon Al Wasim picture Ripon Al Wasim · Aug 31, 2012

The following is the equivalent code in Selenium WebDriver using Java:

driver.navigate().refresh();