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)
SearchContextfindElements in interface SearchContextby - The locating mechanism to useWebElements, or an empty list if nothing matchesBypublic WebElement findElement(org.openqa.selenium.By by)
SearchContextWebElement using the given method.findElement in interface SearchContextby - The locating mechanismpublic WebDriver getWrappedDriver()
getWrappedDriver in interface org.openqa.selenium.internal.WrapsDriverpublic WebElement getWrappedElement()
getWrappedElement in interface org.openqa.selenium.internal.WrapsElementpublic Widget getSelfReference()