iRobo.Activity.For Each Element

ForEachUIElement Activity uses For Each Loop to loop through array  of Elements.


                                                                                               

Properties

Input

  • Element Selector - Generate Script for selected Element.
  • MaxResults - Set maximum number of  output results.
  • Timeout -  Time to execute activity.


Misc

  • _results -  Collection of output Variables.
  • DisplayName -  Activity header name.


Output

  • Results - Array of UI Elements Variables.

Steps of Using For Each Element Activity

  1. Open iRobo Studio, and then open a new Workflow.
  2. Drag For Each Element Activity to the Sequence, then click on Select Element button from the Activity.
  3. Open Element Selector window from the Properties Panel, and remove  "AutomationId": " " From the script.
  4. Drag any Activity into For Each Element Activity to trigger an action on each Element it gets, for example:Highlight Element Activity to highlight each HTML Element.
  5. Drag trigger action activity to the Final field in For Each Element Activity, for example: Message Box Activity to get the count of UI Elements the Activity founds.

  1. Click Save button from iRobo Studio Menu to save Workflow.
  2. Click Play button to start the automated process.

Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator