Skip to content

Instantly share code, notes, and snippets.

@deanhume
Created March 16, 2012 11:03
Show Gist options
  • Save deanhume/2049605 to your computer and use it in GitHub Desktop.
Save deanhume/2049605 to your computer and use it in GitHub Desktop.
SimpleBrowser Example
[Test]
public void SearchResults_ShouldHaveCorrectPageTitle()
{
_driver = new SimpleBrowserDriver();
// Navigate
_driver.Navigate().GoToUrl("http://www.deanhume.com");
// Enter search value
IWebElement searchBox = _driver.FindElement(By.Name("searchValue"));
searchBox.SendKeys("moq");
searchBox.Submit();
Assert.AreEqual(" Dean Hume - Search Results - moq ", _driver.Title);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment