Annotation Type AndroidBy


  • public @interface AndroidBy
    Used to build a complex android automator locator.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String accessibility
      It an UI automation accessibility Id which is a convenient to Android.
      java.lang.String className
      It is a className of the target element.
      java.lang.String id
      It is an id of the target element.
      int priority
      Priority of the searching.
      java.lang.String tagName
      It is a desired element tag.
      java.lang.String uiAutomator
      A String that can build an Android UiSelector or UiScrollable object.
      java.lang.String xpath
      It is a xpath to the target element.
    • Element Detail

      • uiAutomator

        java.lang.String uiAutomator
        A String that can build an Android UiSelector or UiScrollable object. Refer to https://developer.android.com/training/testing/ui-automator
        Returns:
        an Android UIAutomator string
        Default:
        ""
      • accessibility

        java.lang.String accessibility
        It an UI automation accessibility Id which is a convenient to Android. About Android accessibility https://developer.android.com/intl/ru/training/accessibility/accessible-app.html
        Returns:
        an UI automation accessibility Id
        Default:
        ""
      • id

        java.lang.String id
        It is an id of the target element.
        Returns:
        an id of the target element
        Default:
        ""
      • className

        java.lang.String className
        It is a className of the target element.
        Returns:
        a className of the target element
        Default:
        ""
      • tagName

        java.lang.String tagName
        It is a desired element tag.
        Returns:
        a desired element tag
        Default:
        ""
      • xpath

        java.lang.String xpath
        It is a xpath to the target element.
        Returns:
        a xpath to the target element
        Default:
        ""
      • priority

        int priority
        Priority of the searching. Higher number means lower priority.
        Returns:
        priority of the searching
        Default:
        0