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.UseAppiumBy
instead.Appium locating strategies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MobileBy.ByAccessibilityId
Deprecated.UseAppiumBy.ByAccessibilityId
instead.static class
MobileBy.ByAndroidDataMatcher
Deprecated.UseAppiumBy.ByAndroidDataMatcher
instead.static class
MobileBy.ByAndroidUIAutomator
Deprecated.UseAppiumBy.ByAndroidUIAutomator
instead.static class
MobileBy.ByAndroidViewMatcher
Deprecated.UseAppiumBy.ByAndroidViewMatcher
instead.static class
MobileBy.ByAndroidViewTag
Deprecated.UseAppiumBy.ByAndroidViewTag
instead.static class
MobileBy.ByCustom
Deprecated.UseAppiumBy.ByCustom
instead.static class
MobileBy.ByImage
Deprecated.UseAppiumBy.ByImage
instead.static class
MobileBy.ByIosClassChain
Deprecated.UseAppiumBy.ByIosClassChain
instead.static class
MobileBy.ByIosNsPredicate
Deprecated.UseAppiumBy.ByIosNsPredicate
instead.static class
MobileBy.ByWindowsAutomation
Deprecated.Not supported on the server side.-
Nested classes/interfaces inherited from class io.appium.java_client.AppiumBy
AppiumBy.ByClassName
-
Nested classes/interfaces inherited from class org.openqa.selenium.By
org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath, org.openqa.selenium.By.Remotable
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MobileBy(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.By
AccessibilityId(java.lang.String accessibilityId)
Deprecated.UseAppiumBy.accessibilityId(String)
instead.static org.openqa.selenium.By
androidDataMatcher(java.lang.String dataMatcherString)
Deprecated.UseAppiumBy.androidDataMatcher(String)
instead.static org.openqa.selenium.By
AndroidUIAutomator(java.lang.String uiautomatorText)
Deprecated.UseAppiumBy.androidUIAutomator(String)
instead.static org.openqa.selenium.By
androidViewMatcher(java.lang.String viewMatcherString)
Deprecated.UseAppiumBy.androidViewMatcher(String)
instead.static org.openqa.selenium.By
AndroidViewTag(java.lang.String tag)
Deprecated.UseAppiumBy.androidViewTag(String)
instead.static org.openqa.selenium.By
custom(java.lang.String selector)
Deprecated.UseAppiumBy.custom(String)
instead.static org.openqa.selenium.By
image(java.lang.String b64Template)
Deprecated.UseAppiumBy.image(String)
instead.static org.openqa.selenium.By
iOSClassChain(java.lang.String iOSClassChainString)
Deprecated.UseAppiumBy.iOSClassChain(String)
instead.static org.openqa.selenium.By
iOSNsPredicateString(java.lang.String iOSNsPredicateString)
Deprecated.UseAppiumBy.iOSNsPredicateString(String)
instead.static org.openqa.selenium.By
windowsAutomation(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, toString
-
Methods inherited from class org.openqa.selenium.By
cssSelector, equals, getJavascriptExecutor, getWebDriver, hashCode, id, linkText, name, 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
-
-