0% found this document useful (0 votes)
98 views8 pages

Intro in RPA: Staicu Adelina Nicoleta Nicoleta - Staicu@unibuc

The document provides instructions for extracting data from a website using UiPath activities. It describes opening a browser, typing a search term, attaching to the browser, extracting data using the "Extract Data" activity, and writing the extracted data to a CSV file. It also discusses filling a web form from Excel data by opening a browser, using the Excel application scope to read a file, looping through rows with the "For Each Row" activity, and typing data into the form. Finally, it outlines using desktop activities to calculate sums in the calculator app by clicking numbers and operators, getting the result text, and displaying it.

Uploaded by

Soltan Gheorghe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views8 pages

Intro in RPA: Staicu Adelina Nicoleta Nicoleta - Staicu@unibuc

The document provides instructions for extracting data from a website using UiPath activities. It describes opening a browser, typing a search term, attaching to the browser, extracting data using the "Extract Data" activity, and writing the extracted data to a CSV file. It also discusses filling a web form from Excel data by opening a browser, using the Excel application scope to read a file, looping through rows with the "For Each Row" activity, and typing data into the form. Finally, it outlines using desktop activities to calculate sums in the calculator app by clicking numbers and operators, getting the result text, and displaying it.

Uploaded by

Soltan Gheorghe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Intro in RPA

3rd Lab – 11/11/2020

Staicu Adelina Nicoleta


[email protected]
Extracting data from a website

1. Extract data from a website

Objective: To code a Robot in UiPath Studio to scrape data from a


website and store it in .CSV File.

Learning Outcomes
After completion of this exercise you will get familiar with the
following:
✓ “Sequence”
✓ “Comment” and “Annotation”.
✓ “Open Browser” activity.
✓ “Type into” activity.
✓ “Browser scope” activity.
✓ “Extract data” activity.
✓ “Write CSV” activity.
Extracting data from a website

1. Extracting data from a website

Algorithm:

Step 1: START
Step 2: Open the URL using Open Browser Activity
Step 3: Declare variables as ‘CSVFile’, ‘ExtractedDT’, ‘SearchItem’, ‘URL’.
Step 4: Use the variables in the different activity blocks to search, find
the given item
Step 5: Output the result in the write csv file activity
Step 6: STOP
Step by Step process:

Step 1: Open UiPath Studio.


Step 2: Create the process and name it.
Step 3: Create new xaml file as Sequence.
Step 4: Name the new file “Extract data from website”.
Step 5: Drag the ‘Open browser’ activity and drop it in the workflow
Step 6: Create an in argument corresponding to the URL (e.g. in_URL).
Value set in Main: www.amazon.com. This argument will be the input for
the ‘Open browser’ activity.
Step 7: Drag the Type Into activity and drop it in the workflow
Step 8: Change the properties accordingly
Step 9: Create an in argument e.g. in_SearchItem – contains the name of
the product we are searching for (e.g. iPhone). This argument will
represent the input for Type into activity.
Step 10: Add “Enter” key in the Type Into activity. Check “Simulate Type”
property deactivated.
Step 11: Drag and drop “Attach Browser” activity.
Step 12: Drag and drop “Extract Data” activity into the previous added
“Attach Browser”
Step 13: Create the output argument of the Extract Data activity e.g.
out_ExtractedInfoDT. Type DataTable.
Step by Step process:

Step 14: Create a new xaml file as Sequence.


Step 15: Name the new file “Write extracted data into csv”.
Step 16: Create the input argument containing the data table extracted
previously e.g. in_ExtractedInfoDT.
Step 17: Drag the “Write CSV” activity from the Activity panel.
Step 18: Create an in argument that will store the path to the .csv file e.g.
CSVFilePath. Provide the argument to “Write CSV” activity.
Step 19: The input argument containing the data table will represent the
Input for “Write CSV” activity.
Filling a webform from an excel
sheet
1. Filling a webform from an excel sheet

Objective: To code a Robot in UiPath Studio to fill a Webform from the


data extracted from an excel sheet.

Learning Outcomes
After completion of this exercise you will get familiar with the
following:
✓ “Sequence” and “Assign” activity.
✓ “Comment” and “Annotation”.
✓ “Open Browser” and “Maximize Window” activity.
✓ “Excel Application Scope” and how to set conditions.
✓ “For Each Row”, “Excel Read Range”, “Type Into”, “Click” and “Get
Row Item” activity and how to set variables in a code using “Variable”
panel
Filling a webform from an excel
sheet
Filling a webform from an excel sheet

Algorithm:

Step 1: START
Step 2: Add Browser activity and put
https://forms.gle/BnonGQCaaY8QGzk46 this link inside the browser
activity.
Step 3: Add the Excel application scope activity and add the excel file in
it and read the excel file
Step 4: Add For Each row activity to read the contents of the excel file
Step 5: Add one or more sequence and add Type Into activity in it to
read “FirstName”, “LastName”, etc. (row(“FirstName”)) or Get Row
activity
Step 6: Add Click activity to click “Submit”.
Step 7: STOP
Use desktop calculator to
calculate different sums
Use desktop calculator to calculate different sums

Algorithm:

Step 1: START
Step 2: Open Calculator desktop application
Step 3: Add click activity and select the first number
Step 4: Add click activity and select the operation sign
Step 5: Add click activity and select “=“ sign
Step 6: Add get text activity and scrape the result
Step 7: Add message box activity and display the result scraped
Step 8: STOP

Additional: Make the selectors dynamic – for each input from the user,
the robot will calculate the sum.

You might also like