In this session we will learn all about Ui automation, Excel automation, data tables and data manipulation with UiPath Studio.
Agenda:
- Intro to Ui Automation
- What is Ui Automation, Web automation
- How to use the recording tool
- Handling selectors in Studio
- Data scraping
- Screen scraping
- Introduction to Excel automation
- Data tables and data manipulation
- Launch browser, attach browser
- Demo - follow-along
Your trainers:
Priyadarshini Estevez, UiPath MVP 2022, RPA Solution Architect
Rahul Goyal, UiPath MVP 2022, Senior Director, ERP Systems @Ellucian
2. 2
āŖ Intro to UI Automation
āŖ How to use the recording tool
āŖ Handling selectors in Studio
āŖ Data scraping
āŖ Introduction to Excel automation
āŖ Data tables and data manipulation
āŖ Demo
āŖ Wrap up and give an overview of upcoming session
Agenda
3. 3
ā¢ A User Interface (UI) is a series of screens, pages, and visual elements - like buttons and
input fields - that enable you to interact with an application
ā¢ User interface(UI) Automation is the process of interacting with visual elements on the
Desktop. This is done through simulating mouse movement; mouse click and keyboard inputs.
What is UI Automation?
Mouse movements
and clicks
Keyboard inputs Reading computer
screen
4. 4
Input Output
Click
Type Into
Select Item
Check/Uncheck
Get Text
Get URL
Get Active Window
Extract Table Data
StudioActivities
All interactions with the UI can be split into
ā¢ Input (sending or adding something to the application) and
ā¢ Output (getting something from the application)
Use Application/Browser to connect with the target application.
6. 6
Recording tool
With the recording you can save a lot of time when creating an automation.
You can record Click, Text typing, Checkboxes, Drop-downs, Mouse Hover and
Keyboard Shortcuts.
7. 7
Web Recording
ā¢ Used for recording in web apps and browsers
ā¢ Generates containers and uses Simulate Type/Click input method by
default
Desktop Recording
ā¢ Used when multiple actions are performed in many windows
ā¢ Suitable for all types of desktop apps
ā¢ Generates a container (with the selector of the top level) in which
activities are enclosed and partial selectors for each activity
ā¢ Faster than Basic recording
Basic Recording
ā¢ Used when multiple actions are performed in a single window and
generates a full selector for each activity
ā¢ Slow than the one that uses containers and is suitable for single
activities.
ā¢ Slower compared to Desktop recording
Basic, Desktop & Web Recording
8. 8
Computer Vision Recording
ā¢ Used to visually identify all elements, rather than replying on selectors
or images & is suitable for automatically generating workflows that use
CV activities
Native Citrix Recording
ā¢ Used in Native Citrix automation projects & is the equivalent of the
Desktop recording for Citrix environments
Image Recording
ā¢ Used to record virtualized environments such as VNC, virtual
machines, and Citrix for image, text & keyboard automation
ā¢ Require explicit positioning
Image, Native Citrix & Computer Vision
Recording
9. 9
More About Recording
All user interface elements are
highlighted while you record, as you can
see in the following screenshot, so that
you can be sure the correct buttons,
fields or menus are selected.
Regardless of the type
of recording selected,
some actions are
recordable and some
are not.
Recordable Non-Recordable
ā Left-click on
buttons, check
boxes, drop-
down lists and
other GUI
elements
ā Text typing
ā Modifier keys
ā Mouse hover
Note:
If you make changes to your display settings without restarting the
computer, elements are not going to be properly identified.
10. 10
Text typing
Left clicks
Click on Check boxes
Click on Drop-downs
āŖ Following keyboard shortcuts can be used while recording:
āŖ F2 ā pauses the recording for 3 seconds. A countdown timer is displayed in the bottom left corner of
the screen. Can be useful with menus that automatically hide
āŖ Esc ā exists the automatic or manual recording. If pressed again, recording is saved as a sequence,
and you return to the main view
During Recording, you can doā¦.
Recordable Actions Non-Recordable Actions
ā Left-click on buttons,
check boxes, drop-
down lists and other
GUI elements
ā Text typing
ā Modifier keys
ā Mouse hover
11. 11
Modern Experience
Using the Modern Experience
automation, the recording tool is now
unique, so itās not necessary to select the
App type in advance.
Project Settings š”Ŗ Toggle the Modern
Design Experience
Enabling Modern Experience
14. 14
Selectors
ā¢ The Selectors are identifiers of a specific User Interface element through its
address and attributes specific attributes.
ā¢ Every element has a specific selector.
ā¢ You can see the selector of an element by clicking on the
ā¢ Options menu and select Edit Target
15. 15
Selector Editor Window
Classic Design Modern Design
āŖ Enables the user to see the automatically generated selectors and edit their
attributes
16. 16
UI Explorer
ā¢ The UI Explorer is the functionality in
UiPath Studio that allows you to analyze
and edit selectors.
ā¢ It contains a status button showing users
the state of the selector
ā¢ A visual tree panel that displays a
navigable UI of each application running
at that moment, as well as the selected UI
element.
ā¢ The UI Explorer displays all the available
tags and attributes and gives you the
option to check them in or out.
17. 17
Validate
ā¢ Shows the status of
the selector by
checking the validity of
the selector definition
and the visibility of the
target element on
screen.
ā¢ Has the following
status:
ā¢ O (buffer): Selector is
being validated
ā¢ ā: Valid selector
ā¢ Ć: Invalid selector
ā¢ ?: Modified selector,
revalidate
Indicate Element
ā¢ Indicates a new UI
element to replace the
previous one
Repair
ā¢ Enables the user to re-
indicate the same
target UI element and
repair the selector.
ā¢ The button is available
only when the selector
is invalid
Highlight
ā¢ Brings the target
element in the
foreground.
ā¢ The highlight stays on
until its switched off
ā¢ The button is enabled
only if the selector is
valid.
Indicate Anchor
ā¢ Indicates a new anchor
relative to the indicated
Ui element
Properties of Ui Explorer
18. 18
ā¢ A wildcard is a special character that can replace the dynamic part of the selector.
ā¢ There are two types of wildcards:
Asterisk
{*}
ā¢ Replaces zero or more
characters
Question
mark {?}
ā¢ Replaces a single character
Wildcards in Selectors
19. 19
Dynamic Selectors
āŖ Variables are used as a property for the attribute of your target tag. This allows
selectors to easily identify a target element based on the value of the variable
āŖ The variable can be changed to interact with a different element, without changing the
selector itself.
Format
<tag attribute=ā{{Value}}ā />
ā¢ Tag: the target tag, such as <ctrl/>
ā¢ Attribute: the target attribute, such as name=āmenuItemā
ā¢ {{Value}}: the name of the variable or argument which holds the
property of the element the user wants to interact with
21. 21
Data Scraping/Table Extraction
Enables you to extract structured data from your browser, application or
document to a database, .csv file or even Excel spreadsheet.
Classic Design
Modern Design
24. 24
Excel Automation - What can you automate?
ā¢ Create report:
ā¢ Read and write data
ā¢ Sort data
ā¢ Data Filters
ā¢ Pivot tables
ā¢ Excel formatting
ā¢ Work with ranges ā append, auto fill, add/delete rows/columns, sheet
ā¢ Check reports for errors:
ā¢ Delete duplicate data
ā¢ Data reconciliation
ā¢ Fill in forms with data from Excel spreadsheets
ā¢ Extract data from emails and move to desktop/web application
ā¢ Data extraction and migration
ā¢ Data Table to Excel, Excel to Data Table
ā¢ Run macro
25. 25
Excel Application Scope Vs Workbook
ā¢ It is a container and all the other
Excel activities used to work with
the specified Excel file have to be
placed inside the container:
ā¢ Workbook activities, on the other
hand, do not require a scope. The
Excel file needs to be indicated in
the properties for each individual
activity.
26. 26
Data Table
ā¢ DataTable is the type of variable that can store data as a simple spreadsheet
with rows and columns. You can identify each piece of data based on its
unique column and row coordinates.
ā¢ Some common actions with Data tables are:
ā¢ Loop through the data
ā¢ Filter Data
ā¢ Add/Modify Data
ā¢ Sort
28. 28
Data Manipulation
āŖ Data manipulation is the process through which the data is altered using
various operations in order to facilitate its usage
āŖ Operations:
āŖ Modifying
āŖ Structuring
āŖ Formatting
āŖ Sorting
āŖ Allows the use to change data from one form to another by
concatenating, converting, extracting, splitting or segregating to make it
ready to be used by RPA in workflows
Data Manipulation allows us to customize the data in order to be able to
generate the desired outcome based on the process needs
29. 29
Common operations for data manipulation are:
Retrieving
ā¢ Specify
conditions to
extract, filter
or
summarize
data
Adding
ā¢ Add new
data in a
data
structure
Deleting
ā¢ Remove
entries from
a data
structure
Modifying
ā¢ Changes the
existing
entries in a
data
structure
Operations for Data Manipulation
30. 30
Log into UiPath Academy www.academy.uipath.com
> go to the Learning by Role page
> enroll for the RPA Developer Foundation course
> go through the lesson titled ā Working with the
Recorder, Selectors in Studio, DataTables and Excel
Automation With Studioā
Session 4 ā Advanced practices with Studio and Orchestrator
> Email Automation, String Manipulation, Debugging
and Error Handling, Leveraging Orchestrator etc.
Feel free to ask any questions in the UiPath Forum thread
- https://forum.uipath.com/t/rpa-summer-school-studio-
thread/461307
Whatās next?
32. 32
Exercise
ā¢ Go To https://www.rpasamples.com/opportunities
ā¢ Use Scrape Data to retrieve the Account list into a DataTable
ā¢ Use āWrite Rangeā within Excel Application Scope
ā¢ Add a new column to the table with āAdd Column Dataā
ā¢ Loop through the DT and check if qty is over 40 -> add a note
ā¢ Use āWrite Rangeā again (or write cell if itās not too long) to update the Excel