Selectors in Studio Flashcards

1
Q

What are Selectors?

A
  • A selector in UiPath Studio is a feature that enables the identification of a specific User Interface element through its address and attributes.
  • stored as XML fragments. The element identification is done to perform specific activities in an automation project.
  • Selectors are generated automatically every time we use an activity that interacts with graphical user interface elements.
  • UiPath Studio requires the detailed path to a specific element within the user interface.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the ways of selectors can be viewed and edited?

A

Using the selector editor or UIExplorer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When the selectors require fine tuning?

A
  • When the selectors are too specific
  • When the selectors contain dynamic elements
  • When the selectors contains idx s
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the tag of the following selector node?
<webctrl parentid=‘slide-list-container’ tag=‘A’ aaname=‘Details’ class=‘btn-dwnl’ />

A

webctrl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Selector node attributes consist of….

A

Key and value pairs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the attributes of following selector node?
<webctrl parentid=‘slide-list-container’ tag=‘A’ aaname=‘Details’ class=‘btn-dwnl’ />

A
  • parentid=‘slide-list-container’
  • tag=‘A’
  • aaname=‘Details’
  • class=‘btn-dwnl’
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the UI Explorer?

A

The UI Explorer is the functionality in UiPath Studio that allows you to analyze and edit selectors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some business scenarios in which I will use the UI Explorer?

A
  • The selectors change from one execution to another.
  • The selectors might change following product updates.
  • The selectors use unreliable info, such as index.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the functionality of the ‘Validate’ option in UIExplorer?

A
  • To check if the selector is valid after editing a selector
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the functionality of the ‘Indicate Element’ option in UIExplorer?

A

To point a UIElement and display its selector and tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the functionality of the ‘Indicate Anchor’ option in UIExplorer?

A

To choose anchor relative to the targeted element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the functionality of the ‘Highlight’ option in UIExplorer?

A

To highlight the element corresponding to the current selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the functionality of the ‘Visual Tree’ in UIExplorer?

A

Use to find all the UI elements in all the open apps, in a folder/subfolder structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the functionality of the ‘UI Hierachy’ panel in UIExplorer?

A

Display all the nodes of the selector. Nodes can be checked or unchecked.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the functionality of the ‘Edit Attributes’ panel in UIExplorer?

A

To edit the attributes of the selected node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the functionality of the ‘Indicate Anchor’ option in UIExplorer?

A

To switch the UI framework used to identify the selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are the UI Frameworks available in the UIExplorer

A
  • Default
  • Active Accessibility
  • UI Automation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the ‘Default’ UI framework?

A

This is the proprietary method that usually works correctly with all types of user interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the ‘Active Accessibility’ UI framework?

A

This represents an earlier solution from Microsoft that makes apps accessible. It is recommended when using legacy software, if the default framework does not work as expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is the ‘UI Automation’ UI framework?

A

This is the improved accessibility model from Microsoft, which is recommended when using newer applications in case the default framework does not work as expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What needs to be done after switching to a different UI framework from the UI Explorer

A

Indicate the element again

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What are the panels available in the Selector Editor window?

A
  • Edit Attributes
  • Edit Selector
23
Q

What is the ‘Property Explorer’ panel available in the UI Explorer?

A

The Property Explorer is a functionality of the UI Explorer that displays all the attributes of a certain UI element, including those that are not displayed in the selector, like position, visibility, innertext, and so on.

24
Q

Which panel in the UiExplorer displays all the nodes of a selector?
A. UI Frameworks
B. UI Hierarchy
C. Visual Tree
E. Property Explorer

A

B. UI Hierarchy

25
Q

What are the types of selectors?

A

Full Selectors
Partial Selectors

26
Q

What are the Full Selectors?

A
  • Contain all the tags and attributes needed to identify a UI element, including the top-level window.
  • Generated by the Basic Recorder
  • Best suited when the actions performed require switching between multiple windows.
27
Q

What are the Partial Selectors?

A
  • Don’t contain the tags and attributes of the top-level window, thus the activities with partial selectors must be enclosed in containers.
  • Generated by the Desktop Recorder.
  • Best suited for performing multiple actions in the same window.
28
Q

Which of the following statements apply to partial selectors?
A. Generated by the Basic Recorder.
B. Generated by the Desktop Recorder.
C. Best suited for performing multiple actions in the same window.
D. Activities with partial selectors must be enclosed in containers.
E. Best suited when the actions performed require switching between multiple windows.

A

B. Generated by the Desktop Recorder.
C. Best suited for performing multiple actions in the same window.
D. Activities with partial selectors must be enclosed in containers.

29
Q

What are the ways of fine-tuning the selectors?

A
  • Using WildCards
  • Using Variables
  • Using index variables
30
Q

How many characters are replaced by Asterisk(*)?

A

0 or more

31
Q

How many characters are replaced by question mark(?)?

A

One

32
Q

Which approach uses a UI element that is stable and is linked to the target UI element to fine-tune the selector?
- Anchor Base
- Visual Tree
- Find Children
- Relative Selector

A
  • Anchor Base
33
Q

What is the type of selector that is generated when you use a Type Into activity in a container such as Open Browser?
a. A partial selector
b. A static selector
c. A full selector
d. A dynamic selector

A

a. A partial selector

34
Q

This is a reliable selector for a dynamic page: “webctrl idx=‘144’ tag=‘IMG’/”.
a. True
b. False

A

b. False

35
Q

Which one of the nodes of a selector is named the “root node”?
a. The center-level node, corresponding to the application
b. The highest-level node, corresponding to the application
c. Neither of the three
d. The lowest-level node, corresponding to the GUI element

A

b. The highest-level node, corresponding to the application

36
Q

Which panel of UI Explorer interface contains all the UI elements of an opened application?

A

Visual Tree

37
Q

What is a selector?
a. The “path” to the UI element, starting from the root, all the way to the target element.
b. The unique ID of an UI element.
c. A container for UI elements.
d. An activity used to select an element

A

a. The “path” to the UI element, starting from the root, all the way to the target element.

38
Q

What is UiExplorer used for?
a. To explore the workflow tree
b. To explore the UI tree
c. UiExplorer is not a component of UiPath
d. To create and fine tune selectors

A

b. To explore the UI tree
d. To create and fine tune selectors

39
Q

Which of the following statements is true about selectors in UiPath Studio

Selectors in UiPath Studio are manually generated for each activity that interacts with graphical user interface elements.

Selectors are stored as JSON fragments in UiPath Studio.

Selectors are not required for element identification in UiPath Studio.

Selectors in UiPath Studio are XML fragments and enable the identification of specific user interface elements.

A

Selectors in UiPath Studio are XML fragments and enable the identification of specific user interface elements.

40
Q

Which of the following is an example of a tag used in a selector?

parentid=‘slide-list-container’

aaname=‘Details’

class=‘btn-dwnl’

wnd

A

wnd

41
Q

Which of the following types of activities always use partial selectors?

Classic activities

Container activities

Child activities

Modern activities

A

Child activities

42
Q

Which panel in the UI Explorer displays all the nodes of a selector?

UI Frameworks

UI Hierarchy

Visual Tree

Property Explorer

A

UI Hierarchy

43
Q

How can the Visual Tree be used to fine-tune selectors and locate specific UI elements within an application?

By inspecting the properties and attributes of UI elements in the Visual Tree.

By using CSS selectors to target elements within the Visual Tree.

By analyzing the hierarchical structure and relationships between elements in the Visual Tree.

By performing automated tests on the UI elements within the Visual Tree.

A

By inspecting the properties and attributes of UI elements in the Visual Tree.

44
Q

Is the following selector “webctrl idx=’144’ tag=’IMG’” a reliable selector for a dynamic page?

True

False

A

False

45
Q

Which panel of UI Explorer interface contains all the UI elements of an opened application?

Edit Attributes

Visual Tree

UI Hierarchy

UI Frameworks

A

Visual Tree

46
Q

When using the “Find Children” activity in UiPath, what is the type of variable used to store the output?

IEnumerable<UiElement></UiElement>

String

Integer

Array

A

IEnumerable<UiElement></UiElement>

47
Q

How can you improve the following calendar page selector to work for all dates in 2020, but only 2020?

“<html app=‘chrome.exe’ title=‘UiPath - Calendar - Week of May 1, 2020’ />”

Choose one of the options below

“<html app=‘chrome.exe’ title=‘UiPath - Calendar - * />”

“<html app=‘chrome.exe’ title=‘UiPath - Calendar - * 2020’ />

“<html app=‘chrome.exe’ title=‘UiPath - Calendar -* 202?’ />”

“<html app=‘chrome.exe’ title=‘UiPath - Calendar - Week of ?????, 2020’ />”

A

“<html app=‘chrome.exe’ title=‘UiPath - Calendar - * 2020’ />

48
Q

Review Question: What activity would you use to eliminate an unnecessary column in a DataTable?

Remove from Collection

Remove Data Column

Delete from Collection

Delete Data Column

A

Remove Data Column

49
Q

What is a selector?

The “path” to the UI element, starting from the root, all the way to the target element.

The unique ID of an UI element.

An activity used to select an element

A container for UI elements.

A

The “path” to the UI element, starting from the root, all the way to the target element.

50
Q

What’s UiExplorer used for and how can it be helpful in the automation process?

Choose all the options that apply

UiExplorer is not a component of UiPath

To explore the workflow tree

To create and fine tune selectors

To explore the UI tree

A

To create and fine tune selectors

To explore the UI tree

51
Q

What is the type of selector that is generated when you use a Type Into activity in a container activity?

Choose one of the options below

A full selector

A dynamic selector

A partial selector

A static selector

A

A partial selector

52
Q

Which one of the nodes of a selector is named the “root node”?

Choose one of the options below

The lowest-level node, corresponding to the GUI element

The highest-level node, corresponding to the application

The center-level node, corresponding to the application

A

The highest-level node, corresponding to the application

53
Q

When fine-tuning a selector, how many characters does “*” replace?

Zero or more

Exactly one

Zero

One or more

A

Zero or more