예제 #1
0
        public SearchResultsComponent <TResultTile> Search()
        {
            SeleniumHelper.Sleep(2);
            SearchResultsComponent <TResultTile> results = null;

            AutomationSugar.SearchAndWaitForResults(new ByChained(_parent.ComponentIdentifier, this.ComponentIdentifier));
            SeSugar.Automation.Retry.Do(() =>
            {
                results = new SearchResultsComponent <TResultTile>(_parent);
            });

            return(results);
        }
예제 #2
0
파일: Search.cs 프로젝트: NanaShenley/sel
        public SearchResultsComponent <TResultTile> Search()
        {
            Wait.WaitUntilEnabled(By.CssSelector("[data-automation-id='search_criteria_submit']"));
            Retry.Do(_searchButton.Click);
            SearchResultsComponent <TResultTile> results = null;

            //Thread.Sleep(500);
            //Wait.WaitUntilEnabled(By.CssSelector("[data-automation-id='search_criteria_submit']"));
            Wait.WaitForAjaxReady(By.CssSelector("[data-automation-id='search_criteria_submit'][disabled='disabled']"));
            // Retry.Do(() =>
            //{
            results = new SearchResultsComponent <TResultTile>(_parent);
            // });

            return(results);
        }