Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 19, 2017 12: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/0751f874db24e296f26575acab501c5d to your computer and use it in GitHub Desktop.
Save angelovstanton/0751f874db24e296f26575acab501c5d to your computer and use it in GitHub Desktop.
public partial class BingMainPage
{
private readonly IWebDriver driver;
public BingMainPage(IWebDriver browser)
{
this.driver = browser;
PageFactory.InitElements(browser, this);
}
public string Url => @"http://www.bing.com/";
public void Navigate() => this.driver.Navigate().GoToUrl(this.Url);
public void Search(string textToType)
{
this.SearchBox.Clear();
this.SearchBox.SendKeys(textToType);
this.GoButton.Click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment