Record an automation

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 3 minutes to read
  • Record an automation by using the recorder option in the RPA Desktop Design Studio application. The actions that you perform on the application elements can be saved as an automation flow to the automation project.

    Before you begin

    You must do the following actions before you start recording an automation with the recorder for the first time:
    • Install and enable the ServiceNow RPA Chrome extension to your Google Chrome browser. For more information on adding the RPA Google Chrome extension, see Add the ServiceNow RPA Chrome extension.
    • Install and enable the ServiceNow RPA Edge extension to your Microsoft Edge browser. For more information on adding the RPA Edge extension, see Add the ServiceNow RPA Edge extension.
    • Ensure that the option Allow this extension to read and change all your data on websites that you visit to On all sites is enabled in the Site access pane of the ServiceNow RPA Google Chrome and Microsoft Edge browser extensions.
    • Enable Java Access Bridge from your Windows machine. For more information on how to enable Java Access Bridge, see Enabling and Testing Java Access Bridge.
    You must do the following actions each time that you record a web application:
    • Set the zoom level of the browser to 100%.
    • Close the developer tools of the browser.
    • Wait for the web page to load completely to the browser.

    Role required: None

    Procedure

    1. Select Launch recorder from the toolbar of the Design tab.
      The RPA Desktop Design Studio window is minimized and the recorder panel is launched.
      Important:
      If the Universal App Connector (UAC) plugin is unavailable or removed from the automation project, the Launch recorder button is unavailable in RPA Desktop Design Studio.
    2. Open the application that you want to record and select the Start recording icon Start recording icon.
    3. Point to the element where you want to perform an action.
      The default action that is related to the type of element is displayed. For example, if you point to the Save button in Notepad++, the element type is displayed as <button> and the default action for this item is Click.
    4. Select the drop-down button against the default action to view the list of related actions for the element.

      For example, the list of related actions for the button element type are SendKeys, GetText, DoubleClick, and Focus.

      For more information on the different types of actions and elements, see Types of elements and actions for the recorder.

    5. Optional: To highlight the parent of an element, select the Highlight parent element icon Highlight parent icon..
      For example, if you select the Highlight parent element option for a cell of a table in a web page, the parent table is highlighted.
    6. Select the required action to be performed on the element.
      Each action that you perform is captured sequentially in the Recorded actions pane.
    7. Optional: If you want to pause the recording, select the Stop recording icon Pause recording icon..
    8. To view the Recorded actions pane, select the Show recorded steps icon Show recorded steps icon..
      You can verify the actions that you performed on the application elements from here.
    9. Optional: If you want to delete a recorded action, point to the action and select the Delete action icon Delete action icon..
    10. Optional: If you want to delete all the recorded actions from the Recorded actions pane, select Delete all.
    11. Select Save recording.
    12. On the form, fill in the fields.
      Table 1. Save recording pane
      Field Description
      Activity name Name of the automation activity to which the recorded actions are saved as an automation flow.
      Note:
      Ensure that you don’t give the name of an existing activity.
      Save global object to Option to save the recorded elements to an existing UAC object or a new UAC global object.

      If you select New global object, you must enter the name for the object in the Global object name field.

      If you select the Existing global object, you must select an existing UAC global object from the Select from existing global objects list.

    13. Select Save recording.
      The recorded actions are saved as an automation activity to the automation project. You can modify the recorded automation activity from the design surface.

    What to do next

    You can view the recorded elements as a UAC object in Global Objects in Project Explorer. Expand the UAC objects and view all the screens and elements that are captured by the recorder. Do the following actions if you want to change the screens and element match rules in UAC:
    1. Right-click the generated UAC object in Global Objects and select Configure.

      The Configure screens and elements window is displayed.

    2. Configure the screens and the elements of the recording from the Screens and elements pane.

      For more information on how to configure the screen and element match rules, see Use the Universal App Connector.