public static class MobileBy.ByAccessibilityId extends MobileBy implements java.io.Serializable
MobileBy.ByAccessibilityId, MobileBy.ByAndroidUIAutomator, MobileBy.ByIosClassChain, MobileBy.ByIosNsPredicate, MobileBy.ByIosUIAutomation, MobileBy.ByWindowsAutomationorg.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| Constructor and Description |
|---|
ByAccessibilityId(java.lang.String accessibilityId) |
| Modifier and Type | Method and Description |
|---|---|
WebElement |
findElement(SearchContext context) |
java.util.List<WebElement> |
findElements(SearchContext context) |
java.lang.String |
toString() |
AccessibilityId, AndroidUIAutomator, getLocatorString, iOSClassChain, iOSNsPredicateString, IosUIAutomation, windowsAutomationpublic java.util.List<WebElement> findElements(SearchContext context) throws org.openqa.selenium.WebDriverException, java.lang.IllegalArgumentException
findElements in class MobileByorg.openqa.selenium.WebDriverException - when current session doesn't support the given selector or when
value of the selector is not consistent.java.lang.IllegalArgumentException - when it is impossible to find something on the given
SearchContext instancepublic WebElement findElement(SearchContext context) throws org.openqa.selenium.WebDriverException, java.lang.IllegalArgumentException
findElement in class MobileByorg.openqa.selenium.WebDriverException - when current session doesn't support the given selector or when
value of the selector is not consistent.java.lang.IllegalArgumentException - when it is impossible to find something on the given
SearchContext instancepublic java.lang.String toString()
toString in class org.openqa.selenium.By