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 Details

    • DEFAULT_ANNOTATION_METHOD_ARGUMENTS

      protected static final Class<?>[] DEFAULT_ANNOTATION_METHOD_ARGUMENTS
    • annotatedElementContainer

      protected final AnnotatedElementContainer annotatedElementContainer
    • platform

      protected final String platform
    • automation

      protected final String automation
  • Constructor Details

    • AppiumByBuilder

      protected AppiumByBuilder(String platform, String automation)
  • Method Details

    • createBy

      protected static @Nullable org.openqa.selenium.By createBy(Annotation[] annotations, HowToUseSelectors howToUseLocators)
    • setAnnotated

      public void setAnnotated(AnnotatedElement annotated)
      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 extends AnnotatedElement
    • 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) into By class used by webdriver to locate elements.
      Specified by:
      buildBy in class org.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:
      isLookupCached in class org.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()