示例#1
0
        public static ReadOnlyCollection <IWebElement> FindElementsExtension(this IWebDriver driver, By by)
        {
            WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(AppConfig.Timeout));

            wait.Until(ExpectedConditions.PageIsLoaded());
            wait.Until(ExpectedConditions.InvisibilityOfElement(By.CssSelector(".qode-page-loading-effect-holder:not([style='display: none;'])")));
            return(wait.Until(ExpectedConditions.VisibilityOfElements(by)));
        }