Created
January 19, 2017 19:18
-
-
Save angelovstanton/b19a5639f8ebe759077364d9a1114296 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