public abstract class Widget extends java.lang.Object implements SearchContext, org.openqa.selenium.internal.WrapsDriver, org.openqa.selenium.internal.WrapsElement
Modifier | Constructor and Description |
---|---|
protected |
Widget(WebElement element) |
Modifier and Type | Method and Description |
---|---|
WebElement |
findElement(org.openqa.selenium.By by)
Find the first
WebElement using the given method. |
java.util.List<WebElement> |
findElements(org.openqa.selenium.By by)
Find all elements within the current context using the given mechanism.
|
Widget |
getSelfReference() |
WebDriver |
getWrappedDriver() |
WebElement |
getWrappedElement() |
protected Widget(WebElement element)
public java.util.List<WebElement> findElements(org.openqa.selenium.By by)
SearchContext
findElements
in interface SearchContext
by
- The locating mechanism to useWebElement
s, or an empty list if nothing matchesBy
public WebElement findElement(org.openqa.selenium.By by)
SearchContext
WebElement
using the given method.findElement
in interface SearchContext
by
- The locating mechanismpublic WebDriver getWrappedDriver()
getWrappedDriver
in interface org.openqa.selenium.internal.WrapsDriver
public WebElement getWrappedElement()
getWrappedElement
in interface org.openqa.selenium.internal.WrapsElement
public Widget getSelfReference()