Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created June 19, 2016 14:05
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/3fd418e893ec497f7a8a8658013cb934 to your computer and use it in GitHub Desktop.
Save angelovstanton/3fd418e893ec497f7a8a8658013cb934 to your computer and use it in GitHub Desktop.
[TestClass]
public class BingTests
{
private BingMainPage bingMainPage;
private IDriver driver;
[TestInitialize]
public void SetupTest()
{
this.driver = new SeleniumDriver();
this.bingMainPage = new BingMainPage(this.driver, this.driver);
}
[TestCleanup]
public void TeardownTest()
{
this.driver.Quit();
}
[TestMethod]
public void SearchForAutomateThePlanet()
{
this.bingMainPage.Navigate();
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