List of usage examples for org.openqa.selenium By findElements
public abstract List<WebElement> findElements(SearchContext context);
From source file:org.jboss.arquillian.graphene.enricher.WebElementUtils.java
License:Open Source License
protected static List<WebElement> dropProxyAndFindElements(By by, SearchContext searchContext) { if (searchContext instanceof GrapheneProxyInstance) { if (by instanceof ByJQuery) { return by.findElements(searchContext); } else {/*from ww w .j av a 2s. c o m*/ return ((SearchContext) ((GrapheneProxyInstance) searchContext).unwrap()).findElements(by); } } else { return searchContext.findElements(by); } }
From source file:sandeep.kb.android.remote.android.AndroidWebDriver.java
License:Apache License
public List<WebElement> findElements(By by) { long start = System.currentTimeMillis(); List<WebElement> found = by.findElements(findBy); while (found.isEmpty() && (System.currentTimeMillis() - start <= implicitWait)) { sleepQuietly(100);/*ww w . j ava 2 s . co m*/ found = by.findElements(findBy); } return found; }
From source file:sandeep.kb.android.remote.android.AndroidWebElement.java
License:Apache License
public List<WebElement> findElements(By by) { return by.findElements(findsBy); }