public GoogleMainWebPage SearchForKeyword(string Keyword) { SearchField.SetText(Keyword); WaitForElements(); WaitForGivenElementToBeVisible(SearchButton); SearchButton.Click(); return(this); }
public JobSearchWebPage SearchForJob(string jobToSearchFor) { JobSearchField.SetText(jobToSearchFor); WaitForGivenElementToBeVisible(JobSearchSubmit); JobSearchSubmit.Click(); WaitForElements(); // Clicking search button reloads the page WaitForGivenElementToBeVisible(SearchResultsContainer); SearchResults = SearchResultsContainer.FindChildElements <HtmlControl>(JobSearchSelectors.SearchResult); return(this); }