예제 #1
0
 public GoogleMainWebPage SearchForKeyword(string Keyword)
 {
     SearchField.SetText(Keyword);
     WaitForElements();
     WaitForGivenElementToBeVisible(SearchButton);
     SearchButton.Click();
     return(this);
 }
예제 #2
0
        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);
        }