Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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);
        }