selenium-webdriver Navigate() [C#]


Example

It's possible to navigate the browser directly, like using the standard toolbar commands available on all browsers:

enter image description here

You can create a navigation object by calling Navigate() on the driver:

IWebDriver driver
INavigation navigation = driver.Navigate();

A navigation object allows you to perform numerous actions that navigate the browser around the web:

//like pressing the back button
navigation.Back();
//like pressing the forward button on a browser
navigation.Forward();
//navigate to a new url in the current window
navigation.GoToUrl("www.stackoverflow.com");
//Like pressing the reload button
navigation.Refresh();