public abstract class MobileBy
extends org.openqa.selenium.By
Modifier and Type | Class and Description |
---|---|
static class |
MobileBy.ByAccessibilityId |
static class |
MobileBy.ByAndroidUIAutomator |
static class |
MobileBy.ByIosClassChain |
static class |
MobileBy.ByIosNsPredicate |
static class |
MobileBy.ByIosUIAutomation |
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 |
AndroidUIAutomator(java.lang.String uiautomatorText)
Read http://developer.android.com/intl/ru/tools/testing-support-library/
index.html#uia-apis
|
WebElement |
findElement(SearchContext context) |
java.util.List<WebElement> |
findElements(SearchContext context) |
protected java.lang.String |
getLocatorString() |
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 |
IosUIAutomation(java.lang.String iOSAutomationText)
Read https://developer.apple.com/library/tvos/documentation/DeveloperTools/
Conceptual/InstrumentsUserGuide/UIAutomation.html
|
static org.openqa.selenium.By |
windowsAutomation(java.lang.String windowsAutomation) |
protected MobileBy(MobileSelector selector, java.lang.String locatorString)
protected java.lang.String getLocatorString()
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 IosUIAutomation(java.lang.String iOSAutomationText)
iOSAutomationText
- is iOS UIAutomation stringMobileBy.ByIosUIAutomation
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 iOSNsPredicateString(java.lang.String iOSNsPredicateString)
iOSNsPredicateString
- is an an iOS NsPredicate StringMobileBy.ByIosNsPredicate
public static org.openqa.selenium.By windowsAutomation(java.lang.String windowsAutomation)