In this post, we will dive into what webdriver API does in terms of navigation. Selenium Webdriver Navigation is the first part of Webdriver API and we will cover all navigation methods such as .get(<url>),, .navigate.back(), .navigate.forward(), etc…


This post is designed for beginners who have little or no automation experience. At the end of this tutorial, you will have knowledge of Selenium Navigation features.

Selenium Webdriver Navigation Methods

Webdriver Navigation methods are shown below figure. In this post, I will go with method explanations then show their examples and usage.


.get (URL)

We can go to any URL with driver.get(“”) command.

We can go to any URL with driver.navigate().to(“”) command.


We can go back to previous page with driver.navigate().back() command.


We can go forward from current page to last opened page with driver.navigate().next() command.


We can refresh the webpage with driver.navigate().refresh() command.

Webdriver Navigation Example


Important Note:
Navigation of webdriver halts until the HTML of the page is fully loaded but javascript is not included in this context. Thus, in some cases synchronization is required for error-prone manipulation and interrogation.

Selenium Webdriver Tutorial Series