Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created October 15, 2017 18:09
Show Gist options
  • Save angelovstanton/97413587be4aeac38182a30c81e29cdc to your computer and use it in GitHub Desktop.
Save angelovstanton/97413587be4aeac38182a30c81e29cdc to your computer and use it in GitHub Desktop.
[TestClass]
public class BingTests
{
private static IWebDriver _driver;
[AssemblyInitialize]
public static void AssemblyInitialize(TestContext testContext)
{
DisposeDriverService.TestRunStartTime = DateTime.Now;
_driver = new ChromeDriver();
_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
}
[AssemblyCleanup]
public static void AssemblyCleanUp()
{
DisposeDriverService.FinishHim(_driver);
}
[TestMethod]
public void SearchTextInBing_First()
{
var bingMainPage = new BingMainPage(_driver);
bingMainPage.Navigate();
bingMainPage.Search("Automate The Planet");
bingMainPage.AssertResultsCount("236,000 RESULTS");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment