Created
May 24, 2017 14:56
-
-
Save angelovstanton/a01fd5f2159adc274866a02243a83174 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
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