Class Widget
java.lang.Object
io.appium.java_client.pagefactory.Widget
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.WrapsDriver,org.openqa.selenium.WrapsElement
public abstract class Widget
extends Object
implements org.openqa.selenium.SearchContext, org.openqa.selenium.WrapsDriver, org.openqa.selenium.WrapsElement
It is the Appium-specific extension of the Page Object design pattern. It allows user
to create objects which typify some element with nested sub-elements. Also it allows to
describe and encapsulate logic of interaction/behavior within.
About the Page Object design pattern please read these documents:
- https://code.google.com/p/selenium/wiki/PageObjects
- https://code.google.com/p/selenium/wiki/PageFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebElementfindElement(org.openqa.selenium.By by) List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by) org.openqa.selenium.WebDriverorg.openqa.selenium.WebElement
-
Constructor Details
-
Widget
protected Widget(org.openqa.selenium.WebElement element)
-
-
Method Details
-
findElements
- Specified by:
findElementsin interfaceorg.openqa.selenium.SearchContext
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by) - Specified by:
findElementin interfaceorg.openqa.selenium.SearchContext
-
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()- Specified by:
getWrappedDriverin interfaceorg.openqa.selenium.WrapsDriver
-
getWrappedElement
public org.openqa.selenium.WebElement getWrappedElement()- Specified by:
getWrappedElementin interfaceorg.openqa.selenium.WrapsElement
-
getSelfReference
-