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.
|
WebElement findElement(By by)
WebElement
using the given method.by
- The locating mechanismNoSuchElementException
- If no matching elements are foundList<WebElement> findElements(By by)
by
- The locating mechanism to useWebElement
s, or an empty list if nothing matchesBy
Copyright © 2014-2017 Machine Publishers, LLC and the jBrowserDriver contributors.
Project homepage: https://github.com/machinepublishers/jbrowserdriver