Skip to main content
Roberty Studio
RPABrowser

For each browser element

For each browser element

Loops over every element of a list captured by the Get elements action. The actions inside the loop run once per element, so you can work with each item the search returned individually.


Options​

Element​

A reference to the Get elements action whose list is iterated over. Pick the action that captured the elements you want.

Returns​

On each pass of the loop, the inner actions get these fields:

Javascript code​

js
actions["action-id"].currentResult // the current pass's HTML element (Any)
actions["action-id"].currentResultIndex // the current pass's index, starting at 0 (Number)

Field selection​

  • currentResult — the current pass's HTML element (Any)
  • currentResultIndex — the current pass's numeric index in the list, starting at 0 (Number)

Rules and conditions​

  • Element is required and has to reference a Get elements action.
  • The actions inside the loop run once per element in the returned list.
  • With an empty list, the loop does not run at all.