Skip to content

Instantly share code, notes, and snippets.

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