public interface SearchContext
| Modifier and Type | Method and Description |
|---|---|
WebElement |
findElement(By by)
Find the first
WebElement using the given method. |
java.util.List<WebElement> |
findElements(By by)
Find all elements within the current context using the given mechanism.
|
java.util.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 found