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 Details

    • Widget

      protected Widget(org.openqa.selenium.WebElement element)
  • Method Details

    • findElements

      public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
      Specified by:
      findElements in interface org.openqa.selenium.SearchContext
    • findElement

      public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
      Specified by:
      findElement in interface org.openqa.selenium.SearchContext
    • getWrappedDriver

      public org.openqa.selenium.WebDriver getWrappedDriver()
      Specified by:
      getWrappedDriver in interface org.openqa.selenium.WrapsDriver
    • getWrappedElement

      public org.openqa.selenium.WebElement getWrappedElement()
      Specified by:
      getWrappedElement in interface org.openqa.selenium.WrapsElement
    • getSelfReference

      public Widget getSelfReference()