How To Refresh The Page In Selenium Webdriver using Java

How to Refresh or reload the Page in Selenium ?

driver.navigate().refresh();


This is predefined method provided by selenium webdriver
to refresh the webpage

Selenium code For Refresh the Page Using java

package New;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class AutomationTesting
 {
public static void main(String[] args)
 {        System.setProperty("webdriver.chrome.driver","D:\\Sandeep\\Soft\\chromedriver.exe"); WebDriver driver= new ChromeDriver();
driver.navigate().to("https://qaacharya.in/");
driver.manage().window().maximize();
driver.navigate().refresh(); 
driver.close();
}
}


Hope !!! The Above Code For how to refresh the page in Selenium Webdriver  Helpful For You ...
Team 
QA acharya 

Tags: How to refresh the page in selenium webdriver , selenium code to refresh the page , how to refresh the page in Selenium using java , code for refreshing the page in Selenium .
Related Post:



How To Refresh The Page In Selenium Webdriver using Java