Design a Bot Using Web Automation Activities

This tutorial shows you how to design a simple bot to automatically perform specific tasks in a web browser window.

The bot will open the Google search page and then click the Gmail link to navigate to the Gmail sign in or account creation page. It will again navigate back to the Google search page and then close the web browser.

Background

You will use the activities available in Web Automation to create the bot.

Prerequisites

  • Access to ASG Studio Manager.
  • Check the availability of the Google Chrome application on your computer. We will be selecting Google Chrome for performing automated activities.

Design the Bot

In this section, you design the RPA Model for performing the Web Automation task.

  1. Launch ASG-Studio.
  2. Create an RPA Model. See Create and Design RPA Model.
    Alternatively, you can open an existing RPA Model. If you are using an existing RPA Model click Clear in the Element Toolbar to remove any activities that have been previously added to the visual designer.
  3. In the visual designer, drag Start Event from the element toolbar and drop it on the visual designer. Keep the default activity name.
  4. In the Activities Panel, expand Web Automation, then drag the following activities and drop them onto the visual designer.

    To connect the activity shapes, select the first activity shape, click and hold the Sequence Flow or Association arrow icon, drag the arrow to the second shape, and then click the second activity shape.

    Sub-Folder

    Action Name

    Name

    Other Properties

    Connect From

    Connect To

    Generic Actions

    Open Browser

    Open Chrome

    • Instance Name: A1
    • Choose Browser: (Select) Chrome
    • Instance Tracking: (Select) Forget Instance
    • Window State: (Select) Maximize

    Start

    Open Chrome

    Generic Actions

    Navigate To URL

    Navigate to Google

    • Instance Name: A1
    • Choose Browser: (Select) Chrome
    • Enter URL: https://www.google.com

    Open Chrome

    Navigate to Google

    UI Actions

    Web Element Action

    Open Gmail Page

    • Instance Name: A1
    • Element Search Type: (Select) Find Element By XPath
    • Search Parameter: //*[@class="gb_e"]
    • Element Action: (Select) Left Click

    Navigate to Google

    Open Gmail Page

    Generic Actions

    Navigate Back

    Default activity name

    Instance Name: A1

    Open Gmail Page

    Navigate Back

    Generic Actions

    Refresh

    Default activity name

    Instance Name: A1

    Navigate Back

    Refresh

    Generic Actions

    Close Browser

    Close Chrome

    Instance Name: A1

    Refresh

    Close Chrome

  5. Drag End Event from the Element Toolbar and drop it on the visual designer. Keep the default activity name. Connect Close Chrome to End Event.
  6. In the Element Toolbar of the visual designer, click Run to execute the RPA Model.
    • When the bot is running, Google Chrome application will open and perform the specified task.
    • A message is displayed in the visual designer after successful completion of the RPA Model execution.