RPA Record
RPA Record
LABORATORY
1
DEPARTMENT OF INFORMATION TECHNOLOGY
CCS361& ROBOTIC PROCESS AUTOMATION LABORATORY RECORD
2
1
TABLE OF CONTENTS
Page.
Ex.No Date LIST OF EXPERIMENTS Marks Sign
No
Create a Sequence to obtain user inputs display them using a 2
1
message box
Create a Flowchart to navigate to a desired page based on a 5
2
condition
Create a State Machine workflow to compare user input 9
3 with a random number.
Build a process in the RPA platform using UI Automation 11
4
Activities.
Create an automation process using key System Activities, 13
5
Variables and Arguments
15
6 Also implement Automation using System Trigger
17
7 Automate login to (web)Email account
19
8 Recording mouse and keyboard actions
20
9 Scraping data from website and writing to CSV
22
10 Implement Error Handling in RPA platform
25
11 Web Scraping
28
12 Email Query Processing
2
EX:NO: 1 Create a Sequence to obtain user inputs display them using a message box
DATE:
Aim:
To Create a Sequence to obtain user inputs display them using a message box
Procedure:
• Go to the UiPath website and sign up for a free community edition of UiPath Studio.
• Once signed up, download and install UiPath Studio following the instructions provided.
• After installation, open UiPath Studio and sign in using your UiPath account
credentials to activate the community version.
• Open UiPath Studio.
• Click on New Project > Process.
• Name your project (e.g., "UserInputMessageBox") and click Create.
• In UiPath Studio, drag the Sequence activity from the Activities pane into the main
workflow. A sequence is a collection of activities that are executed in order.
• To collect user inputs, use the Input Dialog activity.
· In the Activities pane, search for Input Dialog. Drag the Input Dialog activity into the
Sequence
After collecting the inputs, use the Message Box activity to display the inputs to the user.
Example:"Name: " + userName + "\nAge: " + age + "\nCity: " + city Here's what the final sequence
1. Sequence:
o Inside the Sequence, you add three Input Dialog activities, one for each input
(name, age, and city).
2. Message Box:
o After gathering all inputs, a Message Box will show the formatted string
containing the user's input.
Output:
Result
Once you're satisfied with the workflow, you can save it and even publish it if you're working within an
enterprise environment that requires deploying robots.
5
Aim:
Procedure:
This will create a blank flowchart where you will add your decision- making logic and actions.
condition = True
6
Now you need to specify what happens if the condition is True or False.
True Branch:
• If condition is True, you will navigate to Page 1 (or perform the corresponding action).
• To simulate navigating to Page 1, drag a Message Box activity into the Then branch of the If
activity.
• In the Message Box, type "Navigating to Page 1".
False Branch:
• If condition is False, you will navigate to Page 2 (or perform the corresponding action).
• Similarly, drag a Message Box activity into the Else branch of the If activity.
• In the Message Box, type "Navigating to Page 2".
Output
+ +
| Start |
+ +
|V
+ +
+ +
|V
+ +
| If condition = True? |
+ +
/ \
True / \ False
/ \
+ + + +
| "Navigating to | | "Navigating to |
+ + + +
|V
+ +
| End |
+ +
8
Result:-
The flowchart to navigate to a desired location based on a condition and display them using a
message box in Ui Path studio environment is successfully designed , executed and output is verified.
9
DATE:
Aim
To automate a random number guessing task using a State Machine workflow in UiPath, simulating
user input and feedback with UI Automation Activities.
Procedure
Procedure
1. Initialize: Create a variable to store a random number using New Random().Next(1, 101).
2. Prompt User Input: Use an Input Dialog activity to capture user input.
3. Compare Numbers: Use an If activity to check:
o If the input equals the random number, display a success message and end the
workflow.
o Otherwise, provide feedback using Message Box for "Too high" or "Too low".
4. Repeat Process: Transition back to the input prompt for incorrect guesses.
5. End Workflow: Exit after the correct number is guessed.
Output
10
Result
The RPA bot successfully automates a number guessing task, providing feedback and saving time
while demonstrating State Machine and UI Automation capabilities.
11
Procedure:
1. Identify the Target Application: Choose a simple web application with basic
login and navigation functionalities.
2. Record the Process: Use the recording feature of your RPA tool to capture the steps
involved in performing the task.
3. Analyze the Recorded Steps: Review the recorded steps and identify the UI elements
that need to be interacted with.
4. Create the Automation Workflow: Design a workflow using the following activities:
o Browser Activities: Open the browser, navigate to the target URL, and close the
browser.
o Input Activities: Simulate keyboard input to enter credentials.
o Click Activities: Simulate mouse clicks to interact with buttons and links.
o Wait Activities: Introduce delays to ensure synchronization with the application.
5. Configure the Activities: Set the appropriate properties for each activity, such as the target
element, input values, and wait times.
6. Test and Debug: Execute the workflow and verify its correctness. Debug any errors or issues
that arise.
7. Optimize the Workflow: Refine the workflow to improve its efficiency and reliability.
Output:
12
Result: The RPA bot successfully automates the web-based task, saving time and effort.
13
EX:NO 5 Creating an Automation Process Using System Activities, Variables, and Arguments
DATE:
Aim: To automate a system-level task, such as file operations or email sending, using system activities,
variables, and arguments.
Procedure:
1. Identify the Task: Determine the specific system-level task to be automated, such as
copying files, sending emails, or working with Excel spreadsheets.
2. Design the Workflow: Create a workflow using the following activities:
o Assign Activities: Assign values to variables to store input data.
o System Activities: Use activities like "Copy File," "Send Email," or "Excel
Application Scope" to perform the task.
o Flow Control Activities: Control the flow of execution using activities like
"If," "For Each," and "While."
3. Configure the Activities: Set the appropriate properties for each activity, such as file paths,
email addresses, and Excel sheet names.
4. Test and Debug: Execute the workflow and verify its correctness. Debug any errors or issues
that arise.
5. Optimize the Workflow: Refine the workflow to improve its efficiency and reliability.
Output:
14
Result: The RPA bot successfully automates the system-level task, improving productivity.
15
DATE:
Aim: To automate a process based on a specific system event, such as a file being created or modified.
Procedure:
Output:
Result:
The automation successfully responds to the system event, improving efficiency and
productivity
17
DATE:
Aim: To automate the login process to a web-based email account using an RPA tool.
Procedure:
1. Identify the Target Website: Determine the URL of the email account's login page.
2. Record the Login Process: Use the recording feature of the RPA tool to capture the steps
involved in entering the username, password, and clicking the login button.
3. Analyze the Recorded Steps: Review the recorded steps and identify the UI elements that
need to be interacted with (e.g., input fields, buttons).
4. Create the Automation Workflow: Design a workflow using the following activities:
o Browser Activities: Open the browser, navigate to the login page, and close the
browser.
o Input Activities: Simulate keyboard input to enter the username and
password.
o Click Activities: Simulate mouse clicks to click the login button.
o Wait Activities: Introduce delays to ensure synchronization with the website.
5. Configure the Activities: Set the appropriate properties for each activity, such as the target
element, input values, and wait times.
6. Test and Debug: Execute the workflow and verify that it successfully logs into the
email account. Debug any errors or issues that arise.
7. Secure Sensitive Information: Implement secure storage mechanisms for
sensitive information like passwords.
18
Output:
Result:
Automate the login process to a web-based email account using an RPA tool was executed
successfully.
19
DATE:
Aim: To record and replay user actions to automate tasks that involve complex interactions with a user
interface.
Procedure:
1. Start the Recording: Initiate the recording feature of the RPA tool.
2. Perform the Actions: Manually perform the desired actions, such as clicking buttons, typing
text, and navigating through menus.
3. Stop the Recording: End the recording session.
4. Review the Recording: Review the recorded steps to ensure accuracy.
5. Create the Automation Workflow: Use the recorded steps to create a workflow with
appropriate activities.
6. Test and Debug: Execute the workflow and verify that it performs the actions correctly.
Output:
Result:
Record and replay user actions to automate tasks that involve complex interactions with a user
interface was executed successfully.
20
DATE:
Procedure:
1. Identify the Target Website: Determine the URL of the website containing the desired
data.
2. Analyze the Website Structure: Inspect the HTML structure of the website to identify the
elements containing the data.
3. Create the Automation Workflow: Design a workflow using the following activities:
o Browser Activities: Open the browser, navigate to the target URL, and close the
browser.
o Web Scraping Activities: Use activities like "Get Text," "Get Attribute," and "Data
Scraping" to extract the required data.
o File Activities: Create a CSV file and write the extracted data to it.
4. Configure the Activities: Set the appropriate properties for each activity, such as the target
element, output file path, and CSV delimiter.
5. Test and Debug: Execute the workflow and verify that the data is extracted and saved
correctly.
21
Output:
Result:
Extract data from a website and save it to a CSV file output was executed and verified successfully.
22
Create a new process or project in the RPA tool to implement error handling.
Think of potential errors that might occur in the process (e.g., webpage not found, element not
found, database connection failure, or network errors).
Consider errors such as:
• Missing files
• Incorrect data
• Timeout errors
• Application crashes
4. Log Errors:
Use activities like Log Message to log errors and Write to Log or
Write to File to record the exception details.
Catch specific exceptions (like network errors, element not found, etc.) and take specific
actions, such as retrying the operation, sending notifications, or terminating the process.
23
Or you can use Continue to skip a problematic step and proceed with the rest of the automation.
Check if the process recovers from the error or stops gracefully, and the error is logged correctly.
Output:
24
Result:
This experiment demonstrates how error handling in RPA ensures that automations run smoothly and
can recover from potential failures.
25
DATE:
Aim:
To perform a web scraping task using Robotics Process Automation (RPA) to extract data from a
website , automate the process, and store the scraped data in a structured format.
Procedure:
Set up the automation environment by creating a new process in the RPA tool.
Check the stored data in the CSV or Excel file to ensure the data is scraped correctly.
Program:
2. Data Scraping:
Use the Data Scraping wizard in UiPath to capture tabular data from the webpage. This will
automatically create a data table variable.
3. Extract Data:
The wizard identifies the repeating pattern in the data (like rows of product listings) and
extracts each element such as the product name, price, and description.
4. Write to Excel:
This experiment demonstrates how RPA can be used to automate the process of web scraping,
reducing manual effort and providing quick, accurate results.
Output:
27
Result:
Use the Write Range activity to save the scraped data to an Excel sheet was executed and verified
successfully.
28
DATE:
Aim:
To automate the process of reading and responding to email queries using Robotics Process
Automation (RPA) tools like UiPath, by extracting key information from incoming emails and
sending a tailored response.
Procedure:
Configure email integration by connecting the RPA tool to an email server (e.g., Outlook, Gmail,
or Office365) using IMAP/SMTP protocols.
In UiPath, use the Get IMAP Mail Messages or Get Outlook Mail Messages activities to
retrieve emails from a mailbox.
Once the emails are fetched, use string manipulation or regular expressions to extract key
information from the email body. For example, extract customer name, query, and any required
details (e.g., invoice number or issue description).
Use If conditions or switch cases to decide how to respond to each email based on its content
(e.g., different responses based on keywords like "invoice," "support," or "order").
Based on the extracted information, the RPA bot can process the query.
For example:If the query contains the word "invoice," the bot can check for invoice-related
information.If it contains "support," the bot may reply with troubleshooting steps or create a support
ticket.
Use Send Outlook Mail Message or Send SMTP Mail Message to send a response email to the
user based on the query. Tailor the response content based on the extracted data.
29
6. Error Handling:
Implement error handling to manage issues such as email retrieval failure or failed sending of
emails.Log any errors for further troubleshooting.
Execute the RPA process and test by sending different types of emails to check if the
automation correctly processes them and responds appropriately.
Output:
RESULT:
This experiment demonstrates how RPA can be used to automate email query processing,
saving time and ensuring a faster response to customer inquiries.