Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 20, 2016 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/fe3c2069de68bce2e563 to your computer and use it in GitHub Desktop.
Save angelovstanton/fe3c2069de68bce2e563 to your computer and use it in GitHub Desktop.
[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