Class AppiumByBuilder
java.lang.Object
org.openqa.selenium.support.pagefactory.AbstractAnnotations
io.appium.java_client.pagefactory.bys.builder.AppiumByBuilder
- Direct Known Subclasses:
DefaultElementByBuilder
public abstract class AppiumByBuilder
extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
It is the basic handler of Appium-specific page object annotations.
About the Page Object design pattern please read these documents:
- Selenium Page Object models
- Selenium Page Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotatedElementContainerprotected final Stringprotected static final Class<?>[]protected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidabstract org.openqa.selenium.BybuildBy()Defines how to transform given object (field, class, etc) intoByclass used by webdriver to locate elements.protected abstract org.openqa.selenium.Byprotected abstract org.openqa.selenium.Byprotected static @Nullable org.openqa.selenium.BycreateBy(Annotation[] annotations, HowToUseSelectors howToUseLocators) protected booleanprotected booleanisIOS()protected booleanabstract booleanDefines whether or not given element should be returned from cache on further calls.protected booleanisTvOS()protected booleanvoidsetAnnotated(AnnotatedElement annotated) This method should be used for the setting up of AnnotatedElement instances before the building of By-locator strategies.
-
Field Details
-
DEFAULT_ANNOTATION_METHOD_ARGUMENTS
-
annotatedElementContainer
-
platform
-
automation
-
-
Constructor Details
-
AppiumByBuilder
-
-
Method Details
-
createBy
protected static @Nullable org.openqa.selenium.By createBy(Annotation[] annotations, HowToUseSelectors howToUseLocators) -
setAnnotated
This method should be used for the setting up of AnnotatedElement instances before the building of By-locator strategies.- Parameters:
annotated- is an instance of class which type extendsAnnotatedElement
-
isAndroid
protected boolean isAndroid() -
isIOS
protected boolean isIOS() -
isTvOS
protected boolean isTvOS() -
isIOSXcuit
protected boolean isIOSXcuit() -
isWindows
protected boolean isWindows() -
buildBy
public abstract org.openqa.selenium.By buildBy()Defines how to transform given object (field, class, etc) intoByclass used by webdriver to locate elements.- Specified by:
buildByin classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
isLookupCached
public abstract boolean isLookupCached()Defines whether or not given element should be returned from cache on further calls.- Specified by:
isLookupCachedin classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
buildDefaultBy
protected abstract org.openqa.selenium.By buildDefaultBy() -
buildMobileNativeBy
protected abstract org.openqa.selenium.By buildMobileNativeBy() -
assertValidAnnotations
protected abstract void assertValidAnnotations()
-