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 www.asg.com
home page and then click the Contact Us button to see ASG Technologies contact information. It will again navigate back to the www.asg.com
home page and then closes the web browser.
Background
You will use the activities available in Web Automation to create the bot.
Prerequisites
- Access to ASG Studio Manager.
- Ensure Google Chrome is available on your computer.
Design the Bot
In this section, you design the RPA Model for performing the Web Automation task.
- Launch ASG-Studio.
- 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. - In the visual designer, drag Start Event from the element toolbar and drop it on the visual designer. Keep the default activity name.
- 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 ASG website
- Instance Name: A1
- Enter URL:
https://www.asg.com
Open Chrome
Navigate to ASG website
UI Actions
Web Element Action
Open Contact Us Page
- Instance Name: A1
- Element Search Type:
(Select)
Find Element By XPath - Search Parameter:
//*[@class='contact-u']
- Element Action:
(Select)
Left Click
Navigate to ASG website
Open Contact Us Page
Common Actions Delay Execution Wait time for page load Amount of time to pause (in milliseconds): 5000 Open Contact Us Page Open Contact Us Page Generic Actions
Navigate Back
Default activity name
Instance Name: A1
Open Contact Us 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
- 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.
- 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.