Set the For Each Control for Elements without Bounding Boxes

When you capture elements which don't have any bounding boxes, you cannot use the For each control.

Context

When you capture a screen which have recurring elements such as several links, you can use the For each control. The For each control will apply to all recurring elements.

If you add activities to the For each control, they will apply to all the related recurring elements.

When you are working on captured screens, captured elements are sometimes not visible because they don't have any bounding boxes. Thus, you cannot use the For each.

To solve this limitation, you can use the Custom script activity.

Set the For each control for elements without bounding boxes

  1. From the Automation information side panel, drag and drop a Custom script activity in your automation.

  2. In the Step Details side panel, click Edit script.

  3. Select an output of type Any.

  4. In the central panel, add the getItems function at the end of the path of all the hidden elements (because they don't have any bounding boxes).

  5. Add the For each control to your automation.

  6. In the For each side panel, select as input the previously set output in the Set looping list field.

You can know use the For each control.

For more information, see For Each.