Пример #1
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);
        }