Created
October 15, 2017 18:09
-
-
Save angelovstanton/97413587be4aeac38182a30c81e29cdc to your computer and use it in GitHub Desktop.
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
[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