public static class MobileBy.ByWindowsAutomation extends MobileBy implements java.io.Serializable
MobileBy.ByAccessibilityId, MobileBy.ByAndroidUIAutomator, MobileBy.ByIosClassChain, MobileBy.ByIosNsPredicate, MobileBy.ByIosUIAutomation, 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 |
ByWindowsAutomation(java.lang.String locatorString) |
Modifier and Type | Method and Description |
---|---|
WebElement |
findElement(SearchContext context) |
java.util.List<WebElement> |
findElements(SearchContext context) |
AccessibilityId, AndroidUIAutomator, getLocatorString, iOSClassChain, iOSNsPredicateString, IosUIAutomation, windowsAutomation
protected ByWindowsAutomation(java.lang.String locatorString)
public java.util.List<WebElement> findElements(SearchContext context)
findElements
in class MobileBy
org.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)
findElement
in class MobileBy
org.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
instance