View Source Improve this doc

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 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
2
browser.elements(selector);

Parameters

Param Type Details
selector String selector to query the elements

Returns

  • <Object[]>: A list of WebElement JSON objects for the located elements.