Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created June 19, 2016 14:03
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/45b63606a1775e14145a5205b6f1e1d6 to your computer and use it in GitHub Desktop.
Save angelovstanton/45b63606a1775e14145a5205b6f1e1d6 to your computer and use it in GitHub Desktop.
public partial class BingMainPage : BasePage
{
public BingMainPage(IWebDriver driver) : base(driver)
{
}
public override string Url
{
get
{
return @"http://www.bing.com/";
}
}
public void Search(string textToType)
{
this.SearchBox.Clear();
this.SearchBox.SendKeys(textToType);
this.GoButton.Click();
}
public int GetResultsCount()
{
int resultsCount = default(int);
resultsCount = int.Parse(this.ResultsCountDiv.Text);
return resultsCount;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment