Action group: Browsers
The action returns a list of HTML elements according to the specified criteria.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser | Robin.Selenium | Browser context | Yes |
HTML-element | HTML element that will define the mechanism used to locate elements within a document. Required. | Robin.WebElement | Yes | |
With xpath and cssselector? | If the parameter value is true, then found elements will contain xpath and cssselector. Note: JS script is used. | Robin.Boolean | true | No |
Results | ||||
List of found elements | Collection with a list of found elements | Robin.Collection |
The action returns a collection of web elements (for example, a web element with xpath //a - all links on the page, //li - all items in a numbered/labeled list on the page).
In order to further work with the received web elements, it is necessary to extract them and specify them as an element in other actions (for example, in the Get Text or Send Click actions).
Get the page element into a variable of type "Collection", then click on the element, getting it from the collection.
Use the actions "Open Browser", "Get Elements", "Get value by index", "Send Click".
The program robot completed successfully.