예제 #1
0
        private new void WaitForElements()
        {
            JobSearchComponent = WaitForElementToBeInDom <HtmlControl>(JobSearchSelectors.JobSearchComponent);
            WaitForGivenElementToBeVisible(JobSearchComponent);

            JobSearchField  = WaitForElementToBeInDom <HtmlTextbox>(JobSearchSelectors.JobSearchField, JobSearchComponent);
            JobSearchSubmit = WaitForElementToBeInDom <HtmlSubmit>(JobSearchSelectors.JobSearchSubmit, JobSearchComponent);

            WaitForGivenElementToBeVisible(JobSearchField);

            base.WaitForElements();

            SearchResultsContainer = WaitForElementToBeInDom <HtmlControl>(JobSearchSelectors.SearchResultsContainer);

            base.WaitForElements();

            NextBtn = WaitForElementToBeInDom <HtmlSubmit>(JobSearchSelectors.NextBtn);

            ContractTypeFilter = webDriver.FindElement(By.Name("filter_location"));
            SortingFilter      = webDriver.FindElement(By.Name("filter_sorting"));
        }
예제 #2
0
 public void WaitForElements()
 {
     SearchField  = WaitForElementToBeInDom <HtmlTextbox>(GoogleMainSelectors.SearchField);
     SearchButton = WaitForElementToBeInDom <HtmlSubmit>(GoogleMainSelectors.SearchButton);
 }