Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

How to navigate with browser buttons in selenium webdriver

 We can use webdriver's back or forward method to simulate browser's back or forward functionality.

driver=new FirefoxDriver();  
String URL="http://www.seleniummaster.com";   
driver.get(URL);  //Navigate to URL
driver.navigate().back()//Navigate to backward
driver.navigate().forward();  //Navigate to forward