Created
March 16, 2012 11:03
-
-
Save deanhume/2049605 to your computer and use it in GitHub Desktop.
SimpleBrowser Example
This file contains hidden or 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
[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