Hi Rajan, following are the Navigation commands present in Selenium webdriver:
- navigate().back() – Requires no parameters and takes back the user to the previous webpage in the web browser’s history. For ex. driver.navigate().back();
- navigate().forward() – Navigates to the next web page with reference to the browser’s history. For ex. driver.navigate().forward();
- navigate().refresh() – This command lets you refresh the current web page there by reloading all the web elements. For ex. driver.navigate().refresh();
- navigate().to() – Used to launch a new web browser window and navigate to the specified URL. For ex. driver.navigate().to(“https://google.com”);