io.appium.java_client.pagefactory
Class AppiumFieldDecorator

java.lang.Object
  extended by io.appium.java_client.pagefactory.AppiumFieldDecorator
All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.FieldDecorator

public class AppiumFieldDecorator
extends Object
implements org.openqa.selenium.support.pagefactory.FieldDecorator

Default decorator for use with PageFactory. Will decorate 1) all of the WebElement fields and 2) List fields that have @AndroidFindBy, @AndroidFindBys, or @iOSFindBy/@iOSFindBys annotation with a proxy that locates the elements using the passed in ElementLocatorFactory. Please pay attention: fields of WebElement, RemoteWebElement and MobileElement are allowed to use with this decorator


Constructor Summary
AppiumFieldDecorator(org.openqa.selenium.SearchContext context)
           
AppiumFieldDecorator(org.openqa.selenium.SearchContext context, long implicitlyWaitTimeOut, TimeUnit timeUnit)
           
 
Method Summary
 Object decorate(ClassLoader ignored, Field field)
           
 void resetImplicitlyWaitTimeOut(long timeOut, TimeUnit timeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppiumFieldDecorator

public AppiumFieldDecorator(org.openqa.selenium.SearchContext context,
                            long implicitlyWaitTimeOut,
                            TimeUnit timeUnit)

AppiumFieldDecorator

public AppiumFieldDecorator(org.openqa.selenium.SearchContext context)
Method Detail

decorate

public Object decorate(ClassLoader ignored,
                       Field field)
Specified by:
decorate in interface org.openqa.selenium.support.pagefactory.FieldDecorator

resetImplicitlyWaitTimeOut

public void resetImplicitlyWaitTimeOut(long timeOut,
                                       TimeUnit timeUnit)


Copyright © 2014. All rights reserved.