public static IEnumerable<IWebElement> WaitForElements(this IWebDriver driver, By.jQueryBy by, Func<IWebElement, bool> predicate = null, int seconds = DefaultSecondTimeout) { return driver.WaitForElements(d => d.FindElements(by), predicate, seconds); }
public static IWebElement WaitForElement(this IWebDriver driver, By.jQueryBy by, Func<IWebElement, bool> predicate = null, int seconds = DefaultSecondTimeout) { return driver.WaitForElements(by, predicate, seconds).First(); }
public static int CountNumberOfElements(this IWebDriver browser, By by, Func<IWebElement, Boolean> predicate = null) { return browser.FindElements(by, predicate).Count(); }
public static IEnumerable<IWebElement> FindElements(this IWebDriver driver, By by, Func<IWebElement, bool> predicate) { return driver.FindElements(by).Where(predicate); }
public static IWebElement FindElement(this IWebDriver driver, By by, Func<IWebElement, bool> predicate) { return driver.FindElements(by, predicate).First(); }
public static bool HasElement(this IWebDriver driver, By.jQueryBy byJQuery) { return driver.HasElement(d => d.FindElement(byJQuery)); }