Created
February 20, 2016 10:54
-
-
Save angelovstanton/fe3c2069de68bce2e563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void NavigationHistory() | |
{ | |
this.driver.Navigate().GoToUrl( | |
@"http://www.codeproject.com/Articles/1078541/Advanced-WebDriver-Tips-and-Tricks-Part"); | |
this.driver.Navigate().GoToUrl( | |
@"http://www.codeproject.com/Articles/1017816/Speed-up-Selenium-Tests-through-RAM-Facts-and-Myth"); | |
driver.Navigate().Back(); | |
Assert.AreEqual<string>( | |
"10 Advanced WebDriver Tips and Tricks - Part 1 - CodeProject", | |
driver.Title); | |
driver.Navigate().Refresh(); | |
Assert.AreEqual<string>( | |
"10 Advanced WebDriver Tips and Tricks - Part 1 - CodeProject", | |
driver.Title); | |
driver.Navigate().Forward(); | |
Assert.AreEqual<string>( | |
"Speed up Selenium Tests through RAM Facts and Myths - CodeProject", | |
driver.Title); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment