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 java.lang.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 Modifier Constructor Description protected
Widget(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElement
findElement(org.openqa.selenium.By by)
java.util.List<org.openqa.selenium.WebElement>
findElements(org.openqa.selenium.By by)
Widget
getSelfReference()
org.openqa.selenium.WebDriver
getWrappedDriver()
org.openqa.selenium.WebElement
getWrappedElement()
-
-
-
Method Detail
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
- Specified by:
findElements
in interfaceorg.openqa.selenium.SearchContext
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
- Specified by:
findElement
in interfaceorg.openqa.selenium.SearchContext
-
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()
- Specified by:
getWrappedDriver
in interfaceorg.openqa.selenium.WrapsDriver
-
getWrappedElement
public org.openqa.selenium.WebElement getWrappedElement()
- Specified by:
getWrappedElement
in interfaceorg.openqa.selenium.WrapsElement
-
getSelfReference
public Widget getSelfReference()
-
-