public interface SearchContext
| Modifier and Type | Method and Description |
|---|---|
<T extends WebElement> |
findElement(org.openqa.selenium.By by)
Find the first
WebElement using the given method. |
<T extends WebElement> |
findElements(org.openqa.selenium.By by)
Find all elements within the current context using the given mechanism.
|
<T extends WebElement> java.util.List<T> findElements(org.openqa.selenium.By by)
by - The locating mechanism to useWebElements, or an empty list if nothing matchesBy<T extends WebElement> T findElement(org.openqa.selenium.By by)
WebElement using the given method.by - The locating mechanismNoSuchElementException - If no matching elements are found