public static Func <IWebDriver, bool> ElementToBeSelected(By locator) { return(ExpectedConditions.ElementSelectionStateToBe(locator, true)); }
public void WaitTilPageLoads(string csselement, string drivertype = "chrome") { new WebDriverWait(_webDriver.WebDriver(drivertype), TimeSpan.FromSeconds(60)) .Until(ExpectedConditions.ElementSelectionStateToBe(By.CssSelector(csselement), true)); }
public static Func <IWebDriver, bool> ElementToBeSelected(IWebElement element) { return(ExpectedConditions.ElementSelectionStateToBe(element, true)); }