Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created May 24, 2017 16:42
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/418f4863e21f3e8527c770845a41defe to your computer and use it in GitHub Desktop.
Save angelovstanton/418f4863e21f3e8527c770845a41defe to your computer and use it in GitHub Desktop.
public partial class BingMainPage
{
public string SearchBox
{
get => _driver.FindElement(By.Id("sb_form_q")).Text;
set
{
var element = _driver.FindElement(By.Id("sb_form_q"));
element.Clear();
element.SendKeys(value);
}
}
public IWebElement GoButton => _driver.FindElement(By.Id("sb_form_go"));
public string ResultsCountDiv => _driver.FindElement(By.Id("b_tween")).Text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment