Use variable anchor

The variable anchor in the AISense Recorder enables you to perform an action on multiple objects of the same type.

You can either duplicate the action added for the variable anchor object to perform the action on the same object type or use the action within a Loop action.

Procedure

  1. From Automation Anywhere web interface left panel, click Automation.
  2. Create a new bot or open an existing bot for which you want to record a task.
  3. Click Start recording.
    Note: In versions 2.0.9-20201105-164103 and later, the Recorder package contains both the Universal Recorder and AISense Recorder.

    An integrated Recorder

    The Automation Anywhere Recorder window appears.
  4. Select a window from the drop-down list.
    If you opened an application recently and it is not available in the list, click the Refresh icon.
  5. Click AISense Recorder .
    The first time you use the AISense Recorder on a device, the Recorder downloads the required dependencies.
    The Recorder toolbar appears with Finish, Scan, Define, and Pause options.

    The Recorder analyzes the application window you selected to identify the UI objects in that window. The options on the toolbar are disabled when the system is analyzing the application window. After the analysis, the options are enabled and you can start recording the task.

  6. Click an object or area on the application window that is not highlighted.
  7. Click Define.
    The AISense Define main object window appears with a screen shot of the application.
  8. Select the Control Type.
  9. Click and drag a rectangle to outline the object to capture.
  10. In the Supporting anchor list, select text that is closest to the object you are capturing.
  11. Click Apply.
  12. Click Finish after you have captured the required objects.
    The recorded steps appear as a separate action in the bot.

    You can duplicate the action added for the variable anchor and update the value in the Anchor field with the anchor text of the object you want to capture, for each variable anchor action. Alternatively, use the action within the Loop action and use a variable that supports the string data type in the Anchor field.

  13. Click Save to save the bot.