Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created June 19, 2016 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/b56ceb345fabf7c0077a4f7b4eb5e858 to your computer and use it in GitHub Desktop.
Save angelovstanton/b56ceb345fabf7c0077a4f7b4eb5e858 to your computer and use it in GitHub Desktop.
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