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 decorator| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT
Deprecated.
|
static java.util.concurrent.TimeUnit |
DEFAULT_TIMEUNIT
Deprecated.
|
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. |
AppiumFieldDecorator(SearchContext context,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
|
AppiumFieldDecorator(SearchContext context,
TimeOutDuration duration)
Deprecated.
This constructor is going to be removed. Use
AppiumFieldDecorator(SearchContext, Duration)
instead. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decorate(java.lang.ClassLoader ignored,
java.lang.reflect.Field field)
Decorated page object
field. |
public static final java.time.Duration DEFAULT_WAITING_TIMEOUT
@Deprecated public static final long DEFAULT_TIMEOUT
@Deprecated public static final java.util.concurrent.TimeUnit DEFAULT_TIMEUNIT
@Deprecated public AppiumFieldDecorator(SearchContext context, long timeout, java.util.concurrent.TimeUnit timeUnit)
@Deprecated public AppiumFieldDecorator(SearchContext context, TimeOutDuration duration)
AppiumFieldDecorator(SearchContext, Duration)
instead.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, 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.FieldDecoratorignored - class loader is ignored by current implementationfield - is Field of page object which is supposed to be decorated.