Created
June 19, 2016 14:02
-
-
Save angelovstanton/b56ceb345fabf7c0077a4f7b4eb5e858 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( | |
IElementFinder elementFinder, | |
INavigationService navigationService) | |
: base(elementFinder, navigationService) | |
{ | |
} | |
public void Navigate() | |
{ | |
this.NavigationService.NavigateByAbsoluteUrl(@"http://www.bing.com/"); | |
} | |
public void Search(string textToType) | |
{ | |
// It is going to be implemented in the next article. | |
////this.SearchBox.Clear(); | |
////this.SearchBox.SendKeys(textToType); | |
this.GoButton.Click(); | |
} | |
public int GetResultsCount() | |
{ | |
int resultsCount = default(int); | |
resultsCount = int.Parse(this.ResultsCountDiv.Content); | |
return resultsCount; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment