Package io.appium.java_client
Class MobileBy
- java.lang.Object
-
- org.openqa.selenium.By
-
- io.appium.java_client.AppiumBy
-
- io.appium.java_client.MobileBy
-
- All Implemented Interfaces:
org.openqa.selenium.By.Remotable
- Direct Known Subclasses:
MobileBy.ByWindowsAutomation
@Deprecated public abstract class MobileBy extends AppiumBy
Deprecated.UseAppiumByinstead.Appium locating strategies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMobileBy.ByAccessibilityIdDeprecated.UseAppiumBy.ByAccessibilityIdinstead.static classMobileBy.ByAndroidDataMatcherDeprecated.UseAppiumBy.ByAndroidDataMatcherinstead.static classMobileBy.ByAndroidUIAutomatorDeprecated.UseAppiumBy.ByAndroidUIAutomatorinstead.static classMobileBy.ByAndroidViewMatcherDeprecated.UseAppiumBy.ByAndroidViewMatcherinstead.static classMobileBy.ByAndroidViewTagDeprecated.UseAppiumBy.ByAndroidViewTaginstead.static classMobileBy.ByCustomDeprecated.UseAppiumBy.ByCustominstead.static classMobileBy.ByImageDeprecated.UseAppiumBy.ByImageinstead.static classMobileBy.ByIosClassChainDeprecated.UseAppiumBy.ByIosClassChaininstead.static classMobileBy.ByIosNsPredicateDeprecated.UseAppiumBy.ByIosNsPredicateinstead.static classMobileBy.ByWindowsAutomationDeprecated.Not supported on the server side.-
Nested classes/interfaces inherited from class io.appium.java_client.AppiumBy
AppiumBy.ByClassName, AppiumBy.ById, AppiumBy.ByName
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMobileBy(java.lang.String selector, java.lang.String locatorString, java.lang.String locatorName)Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.openqa.selenium.ByAccessibilityId(java.lang.String accessibilityId)Deprecated.UseAppiumBy.accessibilityId(String)instead.static org.openqa.selenium.ByandroidDataMatcher(java.lang.String dataMatcherString)Deprecated.UseAppiumBy.androidDataMatcher(String)instead.static org.openqa.selenium.ByAndroidUIAutomator(java.lang.String uiautomatorText)Deprecated.UseAppiumBy.androidUIAutomator(String)instead.static org.openqa.selenium.ByandroidViewMatcher(java.lang.String viewMatcherString)Deprecated.UseAppiumBy.androidViewMatcher(String)instead.static org.openqa.selenium.ByAndroidViewTag(java.lang.String tag)Deprecated.UseAppiumBy.androidViewTag(String)instead.static org.openqa.selenium.Bycustom(java.lang.String selector)Deprecated.UseAppiumBy.custom(String)instead.static org.openqa.selenium.Byimage(java.lang.String b64Template)Deprecated.UseAppiumBy.image(String)instead.static org.openqa.selenium.ByiOSClassChain(java.lang.String iOSClassChainString)Deprecated.UseAppiumBy.iOSClassChain(String)instead.static org.openqa.selenium.ByiOSNsPredicateString(java.lang.String iOSNsPredicateString)Deprecated.UseAppiumBy.iOSNsPredicateString(String)instead.static org.openqa.selenium.BywindowsAutomation(java.lang.String windowsAutomation)Deprecated.Not supported on the server side.-
Methods inherited from class io.appium.java_client.AppiumBy
accessibilityId, androidUIAutomator, androidViewTag, className, findElement, findElements, id, name, toString
-
Methods inherited from class org.openqa.selenium.By
cssSelector, equals, getJavascriptExecutor, getWebDriver, hashCode, linkText, partialLinkText, tagName, xpath
-
-
-
-
Method Detail
-
AndroidUIAutomator
@Deprecated public static org.openqa.selenium.By AndroidUIAutomator(java.lang.String uiautomatorText)
Deprecated.UseAppiumBy.androidUIAutomator(String)instead.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.UseAppiumBy.accessibilityId(String)instead.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.UseAppiumBy.iOSClassChain(String)instead.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.UseAppiumBy.androidDataMatcher(String)instead.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.UseAppiumBy.androidViewMatcher(String)instead.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.UseAppiumBy.iOSNsPredicateString(String)instead.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.UseAppiumBy.androidViewTag(String)instead.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
-
image
@Deprecated public static org.openqa.selenium.By image(java.lang.String b64Template)
Deprecated.UseAppiumBy.image(String)instead.This locator strategy is available only if OpenCV libraries and NodeJS bindings are installed on the server machine.- Parameters:
b64Template- base64-encoded template image string. Supported image formats are the same as for OpenCV library.- Returns:
- an instance of
MobileBy.ByImage - Since:
- Appium 1.8.2
- See Also:
- The documentation on Image Comparison Features, The settings available for lookup fine-tuning
-
custom
@Deprecated public static org.openqa.selenium.By custom(java.lang.String selector)
Deprecated.UseAppiumBy.custom(String)instead.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
-
-