示例#1
0
 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));
 }
示例#3
0
 public static Func <IWebDriver, bool> ElementToBeSelected(IWebElement element)
 {
     return(ExpectedConditions.ElementSelectionStateToBe(element, true));
 }