Using the Capture action
- Updated: 2024/09/26
Using the Capture action
Use the Capture action to capture a single interaction (click, keystroke, or mouse movement) with an object control including a text box, button, table, menu, radio button, combo box, check box, list view, link, tree, or page tab.
Prerequisites
-
To use the Recorder, you must already have done the following:
- When you are using dual monitors, ensure that the screen resolution on both the monitors is same.
- Ensure that the screen resolution is set to 1366x768.
- Configure device display and font scale to 100%.
If you are using Recorder package version 2.0.6-20200626-193519 or later, you can record tasks in Google Chrome, Internet Explorer, Java, Microsoft Active Accessibility, and Microsoft UI automation applications on a computer that has display scale configured to 100% or 125%.
- If you are automating a task using a browser, configure the zoom level to
100%.
If you are using Recorder package version 2.0.6-20200626-193519 or later, you can record tasks in a Google Chrome browser that does not have a zoom level setting of 100%.
- If you are automating a task using a Google Chrome browser, ensure that the Automation Anywhere plug-in that corresponds with the Automation 360 build version is enabled.
- To automate web applications running on Microsoft Edge Chromium browser in Internet Explorer mode using the Universal Recorder, ensure that the Internet Explorer compatibility mode is enabled. The objects on
the web applications are captured using HTML technology. To enable this mode,
perform the following steps:
- On the Microsoft Edge Chromium browser page, click Settings.
- On the left panel, click Default browser.
- Navigate to the Allow sites to be reloaded in Internet Explorer mode option and select Allow.
- Click Add to add the URL of the page that you
want to load in Internet Explorer mode.Note: The pages that you add open in Internet Explorer mode for 30 days from the date when you add the page.
- Use clicks when possible rather than shortcut keys.
When you click an object using the Recorder, it retrieves the object's properties that enable the bot to identify the object at runtime. Keyboard shortcuts are less reliable, so use them when it is not possible to automate the task by a clicking an object.
- If you are automating a task using a browser, do not use autofill to enter values into fields.
- Record the task at low speed.
- Avoid dragging windows during the recording process.
- Avoid clicking on applications that are not part of the process you are recording and automating.
- When Internet Explorer is used, the action waits until the browser is completely rendered and is in a ready state before executing the action.
Procedure
To record a single interaction with an object control, follow these steps:
- Open the Capture action.
- Click the Anchor tab.
- Click Capture anchor.
The browser or application window activates with the main object highlighted (the object that you previously captured). A dialog box appears, verifying whether the action has correctly identified the main object.
- If the correct object is highlighted, click Yes, Select
anchor.
Otherwise, click No, I need to correct it to select the correct object.
- Select a nearby object to the target object that is easier for the bot to find.
The object is highlighted with an anchor icon on the right of the object.
- Click Save.