/XPATH
- Locates element using an XPath 1.0 expression.~AccessibilityId
- Locates element by its Accessibility ID. Attribute name in inspect.exe - AutomationId.name=NAME
- Locates element by its name. Attribute name in inspect.exe - Name.id=ID
- Locates element by its ID. Attribute name in inspect.exe - RuntimeID. regex:PATTERN
- Match using regular expression.PATTERN
- Verbatim matching. locator
String
|Element
pattern
String
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.pattern
String
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
pattern
String
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
duration
Number
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
taps
Number
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
parent
Element
optional
Optional parent element for relative search.timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Element
- A Element object.locator
String
parent
Element
optional
Optional parent element for relative search.timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Array.<Element>
- Collection of Element objects.Array.<Object>
- A list of logs.Object
- Current capabilities object.String
- A window handle.Object
- WDIO driver.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Object
- X and Y location of the element relative to top-left page corner.String
- HTML in case of web or hybrid application or XML in case of native.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.String
- Element's text.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.String
- Element's value.Array.<String>
- Array of all available window handles.caps
String
optional
Desired capabilities. If not specified capabilities will be taken from suite definition.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Boolean
- true if element is checkable. false otherwise.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Boolean
- true if element is checked. false otherwise.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Boolean
- true if element is clickable. false otherwise.locator
String
|Element
timeout
Number
optional
Time in milliseconds to wait for the element. Default is 60 seconds.Boolean
- true if the element exists. false otherwise.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.Boolean
- true if element is selected. false otherwise.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds to wait for element to appear. Default is 60 seconds.Boolean
- True if element was found and it was visible. False otherwise.open
command waits for the page to load before proceeding.url
String
ms
Number
locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.windowLocator
can be:title=TITLE
Switch to the first window which matches the specified title. TITLE
can be any ofthe supported string matching patterns (see top of the page). When using title locator, this commandwill wait for the window to appear first similarly to waitForWindow
command. windowHandle
Switch to a window using its unique handle.windowLocator
String
optional
Window locator.timeout
Number
optional
Timeout in milliseconds when using 'title' window locating strategy. Default is 60 seconds.String
- windowHandle of the previously selected window.value
String
|Array.<String>
open
command, waitFor*
commands, and commands which wait for elements to appear in DOM or become visible before operating on them.
If command wasn't able to complete within the specified period it will fail the test.
The default time-out is 60 seconds.timeout
Number
String
- Screenshot image encoded as a base64 string.x
Number
y
Number
name
String
locator
String
|Element
value
String
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
timeout
Number
optional
Time in milliseconds to wait for the element. Default is 60 seconds.locator
String
|Element
timeout
Number
optional
Timeout in milliseconds. Default is 60 seconds.locator
String
|Element
timeout
Number
optional
Time in milliseconds to wait for the element. Default is 60 seconds.