public abstract class AppiumByBuilder
extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
Modifier and Type | Field and Description |
---|---|
protected AnnotatedElementContainer |
annotatedElementContainer |
protected java.lang.String |
automation |
protected static java.lang.Class<?>[] |
DEFAULT_ANNOTATION_METHOD_ARGUMENTS |
protected java.lang.String |
platform |
Modifier | Constructor and Description |
---|---|
protected |
AppiumByBuilder(java.lang.String platform,
java.lang.String automation) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
assertValidAnnotations() |
abstract org.openqa.selenium.By |
buildBy()
Defines how to transform given object (field, class, etc)
into
By class used by webdriver to locate elements. |
protected abstract org.openqa.selenium.By |
buildDefaultBy() |
protected abstract org.openqa.selenium.By |
buildMobileNativeBy() |
protected static org.openqa.selenium.By |
createBy(java.lang.annotation.Annotation[] annotations,
HowToUseSelectors howToUseLocators) |
protected boolean |
isAndroid() |
protected boolean |
isIOS() |
protected boolean |
isIOSXcuit() |
abstract boolean |
isLookupCached()
Defines whether or not given element
should be returned from cache on further calls.
|
protected boolean |
isSelendroidAutomation() |
protected boolean |
isWindows() |
void |
setAnnotated(java.lang.reflect.AnnotatedElement annotated)
This method should be used for the setting up of
AnnotatedElement instances before the building of
By-locator strategies.
|
protected static final java.lang.Class<?>[] DEFAULT_ANNOTATION_METHOD_ARGUMENTS
protected final AnnotatedElementContainer annotatedElementContainer
protected final java.lang.String platform
protected final java.lang.String automation
protected AppiumByBuilder(java.lang.String platform, java.lang.String automation)
protected static org.openqa.selenium.By createBy(java.lang.annotation.Annotation[] annotations, HowToUseSelectors howToUseLocators)
public void setAnnotated(java.lang.reflect.AnnotatedElement annotated)
annotated
- is an instance of class which type extends
AnnotatedElement
protected boolean isAndroid()
protected boolean isSelendroidAutomation()
protected boolean isIOS()
protected boolean isIOSXcuit()
protected boolean isWindows()
public abstract org.openqa.selenium.By buildBy()
By
class used by webdriver to locate elements.buildBy
in class org.openqa.selenium.support.pagefactory.AbstractAnnotations
public abstract boolean isLookupCached()
isLookupCached
in class org.openqa.selenium.support.pagefactory.AbstractAnnotations
protected abstract org.openqa.selenium.By buildDefaultBy()
protected abstract org.openqa.selenium.By buildMobileNativeBy()
protected abstract void assertValidAnnotations()