In order to access navigation method, Just type IWebDriver.navigate().
Or driver.navigate().
In visual studio you will see the list navigation commands as bellow
picture.
Back Command
Let say you browsing some webpage and you decided to go back
to previous page you simply click on back arrow button in your browser.
In automation you simply use following usage to perform the
above task.
Driver.Navigate().Back();
Forward Command
It is exactly opposite to the above. If you want to move
forward the page from previous page use the following usage in automation
Driver.Navigate().Forward();
GoToUrl Command
Following command will be used navigate to particular page
Driver.Navigate().GoToUrl(“https://software-testingnz.blogspot.co.nz/”)
Refresh Command
This command refreshes the page as when we press F5 to
refresh the page
Driver.Navigate().Refresh();
0 comments:
Post a Comment