Class MobileBy

  • All Implemented Interfaces:
    org.openqa.selenium.By.Remotable
    Direct Known Subclasses:
    MobileBy.ByWindowsAutomation

    @Deprecated
    public abstract class MobileBy
    extends AppiumBy
    Deprecated.
    Use AppiumBy instead.
    Appium locating strategies.
    • Constructor Detail

      • MobileBy

        protected MobileBy​(java.lang.String selector,
                           java.lang.String locatorString,
                           java.lang.String locatorName)
        Deprecated.
    • Method Detail

      • AndroidUIAutomator

        @Deprecated
        public static org.openqa.selenium.By AndroidUIAutomator​(java.lang.String uiautomatorText)
        Deprecated.
        Refer to https://developer.android.com/training/testing/ui-automator
        Parameters:
        uiautomatorText - is Android UIAutomator string
        Returns:
        an instance of MobileBy.ByAndroidUIAutomator
      • AccessibilityId

        @Deprecated
        public static org.openqa.selenium.By AccessibilityId​(java.lang.String accessibilityId)
        Deprecated.
        About Android accessibility https://developer.android.com/intl/ru/training/accessibility/accessible-app.html About iOS accessibility https://developer.apple.com/library/ios/documentation/UIKit/Reference/ UIAccessibilityIdentification_Protocol/index.html
        Parameters:
        accessibilityId - id is a convenient UI automation accessibility Id.
        Returns:
        an instance of MobileBy.ByAndroidUIAutomator
      • iOSClassChain

        @Deprecated
        public static org.openqa.selenium.By iOSClassChain​(java.lang.String iOSClassChainString)
        Deprecated.
        This locator strategy is available in XCUITest Driver mode.
        Parameters:
        iOSClassChainString - is a valid class chain locator string. See the documentation for more details
        Returns:
        an instance of MobileBy.ByIosClassChain
      • androidDataMatcher

        @Deprecated
        public static org.openqa.selenium.By androidDataMatcher​(java.lang.String dataMatcherString)
        Deprecated.
        This locator strategy is only available in Espresso Driver mode.
        Parameters:
        dataMatcherString - is a valid json string detailing hamcrest matcher for Espresso onData(). See the documentation for more details
        Returns:
        an instance of MobileBy.ByAndroidDataMatcher
      • androidViewMatcher

        @Deprecated
        public static org.openqa.selenium.By androidViewMatcher​(java.lang.String viewMatcherString)
        Deprecated.
        This locator strategy is only available in Espresso Driver mode.
        Parameters:
        viewMatcherString - is a valid json string detailing hamcrest matcher for Espresso onView(). See the documentation for more details
        Returns:
        an instance of MobileBy.ByAndroidViewMatcher
      • iOSNsPredicateString

        @Deprecated
        public static org.openqa.selenium.By iOSNsPredicateString​(java.lang.String iOSNsPredicateString)
        Deprecated.
        This locator strategy is available in XCUITest Driver mode.
        Parameters:
        iOSNsPredicateString - is an iOS NsPredicate String
        Returns:
        an instance of MobileBy.ByIosNsPredicate
      • windowsAutomation

        @Deprecated
        public static org.openqa.selenium.By windowsAutomation​(java.lang.String windowsAutomation)
        Deprecated.
        Not supported on the server side.
        The Windows UIAutomation selector.
        Parameters:
        windowsAutomation - The element name in the Windows UIAutomation selector
        Returns:
        an instance of MobileBy.ByWindowsAutomation
      • AndroidViewTag

        @Deprecated
        public static org.openqa.selenium.By AndroidViewTag​(java.lang.String tag)
        Deprecated.
        This locator strategy is available in Espresso Driver mode.
        Parameters:
        tag - is an view tag string
        Returns:
        an instance of MobileBy.ByAndroidViewTag
        Since:
        Appium 1.8.2 beta
      • custom

        @Deprecated
        public static org.openqa.selenium.By custom​(java.lang.String selector)
        Deprecated.
        This type of locator requires the use of the 'customFindModules' capability and a separately-installed element finding plugin.
        Parameters:
        selector - selector to pass to the custom element finding plugin
        Returns:
        an instance of MobileBy.ByCustom
        Since:
        Appium 1.9.2