public interface SearchContext
| Modifier and Type | Method and Description |
|---|---|
WebElement |
findElement(By by)
Find the first
WebElement using the given method. |
List<WebElement> |
findElements(By by)
Find all elements within the current context using the given mechanism.
|
List<WebElement> findElements(By by)
by - The locating mechanism to useWebElements, or an empty list if nothing matchesByWebElement findElement(By by)
WebElement using the given method.by - The locating mechanismNoSuchElementException - If no matching elements are foundCopyright © 2014. All rights reserved.