What are the navigate commands in selenium webdriver ?

Syntax : driver.navigate().to(“https://www.google.com”) – Navigates to the provided URL

driver.navigate().refresh() – This method refreshes the current page

driver.navigate().forward() – This method does the same operation as clicking on the Forward Button of any browser. It neither accepts nor returns anything.

driver.navigate().back() – This method does the same operation as clicking on the Back Button of any browser. It neither accepts nor returns anything.

Leave a Reply