Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created June 19, 2016 14:06
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/242d27e9133edd843b7ae08c6db78ddd to your computer and use it in GitHub Desktop.
Save angelovstanton/242d27e9133edd843b7ae08c6db78ddd to your computer and use it in GitHub Desktop.
[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