elements
Search for multiple elements on the page, starting from the document root. The located
elements will be returned as a WebElement JSON objects. The table below lists the
locator strategies that each server should support. Elements should be returned in
the order located in the DOM.
The array of elements can be retrieved within the callback using the ‘response.value’
which is a collection of element ID’s and can be accessed in the subsequent commands
using the ‘.ELEMENT’ method.
Usage
1
| client.elements(selector).then(callback);
|
Parameters
Param |
Type |
Details |
selector |
String |
selector to query the elements |