Created
June 19, 2016 14:03
-
-
Save angelovstanton/45b63606a1775e14145a5205b6f1e1d6 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 : 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