Created
May 24, 2017 16:42
-
-
Save angelovstanton/418f4863e21f3e8527c770845a41defe 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
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