It is used to navigate from one web page to another without any action(hyperlink,buuton click)
Selenium Web Driver provide multiple navigation command to perform operation.
1) navigate().to() :- it is used to navigate particular url of web page according to condition
WebDriver driver= new ChromeDriver();
driver.navigate().to("http://shivaconceptsolution.com/test.html");
2) driver.navigate().back(); :- it is used to press back button of web browser
3) driver.navigate().forward():- It is used to press forward button of web browser
4) driver.navigate().refresh():- It is used to refresh current web content of web pages.
Selenium Web Driver provide multiple navigation command to perform operation.
1) navigate().to() :- it is used to navigate particular url of web page according to condition
WebDriver driver= new ChromeDriver();
driver.navigate().to("http://shivaconceptsolution.com/test.html");
2) driver.navigate().back(); :- it is used to press back button of web browser
3) driver.navigate().forward():- It is used to press forward button of web browser
4) driver.navigate().refresh():- It is used to refresh current web content of web pages.
Post a Comment
If you have any doubt in programming or join online classes then you can contact us by comment .