Created
June 19, 2016 14:06
-
-
Save angelovstanton/242d27e9133edd843b7ae08c6db78ddd 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
[TestClass] | |
public class BingTests | |
{ | |
private BingMainPage bingMainPage; | |
private IWebDriver driver; | |
[TestInitialize] | |
public void SetupTest() | |
{ | |
this.driver = new FirefoxDriver(); | |
this.bingMainPage = new BingMainPage(this.driver); | |
} | |
[TestCleanup] | |
public void TeardownTest() | |
{ | |
this.driver.Quit(); | |
} | |
[TestMethod] | |
public void SearchForAutomateThePlanet() | |
{ | |
this.bingMainPage.Open(); | |
this.bingMainPage.Search("Automate The Planet"); | |
this.bingMainPage.AssertResultsCountIsAsExpected(264); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment