public class AppiumFieldDecorator
extends java.lang.Object
implements org.openqa.selenium.support.pagefactory.FieldDecorator
WebElement
, RemoteWebElement
,
MobileElement
, AndroidElement
and IOSElement
are allowed
to use with this decoratorModifier and Type | Field and Description |
---|---|
static java.time.Duration |
DEFAULT_WAITING_TIMEOUT |
Constructor and Description |
---|
AppiumFieldDecorator(SearchContext context) |
AppiumFieldDecorator(SearchContext context,
java.time.Duration duration)
Creates field decorator based on
SearchContext and timeout duration . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
decorate(java.lang.ClassLoader ignored,
java.lang.reflect.Field field)
Decorated page object
field . |
public AppiumFieldDecorator(SearchContext context, java.time.Duration duration)
SearchContext
and timeout duration
.context
- is an instance of SearchContext
It may be the instance of WebDriver
or WebElement
or
Widget
or some other user's extension/implementation.duration
- is a desired duration of the waiting for an element presence.public AppiumFieldDecorator(SearchContext context)
public java.lang.Object decorate(java.lang.ClassLoader ignored, java.lang.reflect.Field field)
field
.decorate
in interface org.openqa.selenium.support.pagefactory.FieldDecorator
ignored
- class loader is ignored by current implementationfield
- is Field
of page object which is supposed to be decorated.