public abstract class MobileBy
extends org.openqa.selenium.By
Modifier and Type | Class and Description |
---|---|
static class |
MobileBy.ByAccessibilityId |
static class |
MobileBy.ByAndroidDataMatcher |
static class |
MobileBy.ByAndroidUIAutomator |
static class |
MobileBy.ByAndroidViewTag |
static class |
MobileBy.ByCustom |
static class |
MobileBy.ByImage |
static class |
MobileBy.ByIosClassChain |
static class |
MobileBy.ByIosNsPredicate |
static class |
MobileBy.ByWindowsAutomation |
org.openqa.selenium.By.ByClassName, 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
Modifier | Constructor and Description |
---|---|
protected |
MobileBy(MobileSelector selector,
java.lang.String locatorString) |
Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.By |
AccessibilityId(java.lang.String accessibilityId)
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
|
static org.openqa.selenium.By |
androidDataMatcher(java.lang.String dataMatcherString)
This locator strategy is only available in Espresso Driver mode.
|
static org.openqa.selenium.By |
AndroidUIAutomator(java.lang.String uiautomatorText)
Read http://developer.android.com/intl/ru/tools/testing-support-library/
index.html#uia-apis
|
static org.openqa.selenium.By |
AndroidViewTag(java.lang.String tag)
This locator strategy is available in Espresso Driver mode.
|
static org.openqa.selenium.By |
custom(java.lang.String selector)
This type of locator requires the use of the 'customFindModules' capability and a
separately-installed element finding plugin.
|
WebElement |
findElement(SearchContext context) |
java.util.List<WebElement> |
findElements(SearchContext context) |
static org.openqa.selenium.By |
image(java.lang.String b64Template)
This locator strategy is available only if OpenCV libraries and
NodeJS bindings are installed on the server machine.
|
static org.openqa.selenium.By |
iOSClassChain(java.lang.String iOSClassChainString)
This locator strategy is available in XCUITest Driver mode.
|
static org.openqa.selenium.By |
iOSNsPredicateString(java.lang.String iOSNsPredicateString)
This locator strategy is available in XCUITest Driver mode.
|
static org.openqa.selenium.By |
windowsAutomation(java.lang.String windowsAutomation) |
protected MobileBy(MobileSelector selector, java.lang.String locatorString)
public java.util.List<WebElement> findElements(SearchContext context)
findElements
in class org.openqa.selenium.By
public WebElement findElement(SearchContext context)
findElement
in class org.openqa.selenium.By
public static org.openqa.selenium.By AndroidUIAutomator(java.lang.String uiautomatorText)
uiautomatorText
- is Android UIAutomator stringMobileBy.ByAndroidUIAutomator
public static org.openqa.selenium.By AccessibilityId(java.lang.String accessibilityId)
accessibilityId
- id is a convenient UI automation accessibility Id.MobileBy.ByAndroidUIAutomator
public static org.openqa.selenium.By iOSClassChain(java.lang.String iOSClassChainString)
iOSClassChainString
- is a valid class chain locator string.
See
the documentation for more detailsMobileBy.ByIosClassChain
public static org.openqa.selenium.By androidDataMatcher(java.lang.String dataMatcherString)
dataMatcherString
- is a valid class chain locator string.
See
the documentation for more detailsMobileBy.ByAndroidDataMatcher
public static org.openqa.selenium.By iOSNsPredicateString(java.lang.String iOSNsPredicateString)
iOSNsPredicateString
- is an an iOS NsPredicate StringMobileBy.ByIosNsPredicate
public static org.openqa.selenium.By windowsAutomation(java.lang.String windowsAutomation)
public static org.openqa.selenium.By AndroidViewTag(java.lang.String tag)
tag
- is an view tag stringMobileBy.ByAndroidViewTag
public static org.openqa.selenium.By image(java.lang.String b64Template)
b64Template
- base64-encoded template image string. Supported image formats are the same
as for OpenCV library.MobileBy.ByImage
public static org.openqa.selenium.By custom(java.lang.String selector)
selector
- selector to pass to the custom element finding pluginMobileBy.ByCustom