Created
May 24, 2017 16:39
-
-
Save angelovstanton/269468717ece857bb861aa8186b5eb38 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
public partial class BingMainPage | |
{ | |
private readonly IWebDriver _driver; | |
private readonly string _url = @"http://www.bing.com/"; | |
public BingMainPage(IWebDriver browser) => _driver = browser; | |
public void Navigate() => _driver.Navigate().GoToUrl(_url); | |
public void Search(string textToType) | |
{ | |
SearchBox = textToType; | |
GoButton.Click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment