示例#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);
        }