UiPath Certification UiPath Selectors and UI Automation 1 — Questions and Answers
Question 1: What is a selector in UiPath?
- A configuration file for project settings
- An XML fragment that identifies a UI element on screen (Correct answer)
- A type of activity used to click buttons
- A variable that stores UI element coordinates
Correct answer: An XML fragment that identifies a UI element on screen
A selector is an XML fragment that uniquely identifies a UI element by its attributes, used to locate it for automation.
Question 2: Which UiPath tool is used to inspect and edit selectors?
- Activity Explorer
- UI Explorer (UiExplorer) (Correct answer)
- Debug Console
- Project Panel
Correct answer: UI Explorer (UiExplorer)
UiExplorer (UI Explorer) is the dedicated tool for inspecting, testing, and editing selectors for UI elements.
Question 3: What does a 'dynamic selector' in UiPath handle?
- Selectors that change at runtime based on variables or arguments (Correct answer)
- Selectors that work only in web browsers
- Selectors that automatically repair themselves
- Selectors stored in an Orchestrator asset
Correct answer: Selectors that change at runtime based on variables or arguments
Dynamic selectors use variables or expressions to build selector strings at runtime, accommodating elements whose attributes change between executions.
Question 4: Which property in a selector tag identifies the application window title?
- app
- cls
- title (Correct answer)
- idx
Correct answer: title
The 'title' attribute in a selector tag corresponds to the window title of the application, used to identify the correct window.
Question 5: What is the purpose of the 'Anchor Base' activity in UiPath?
- To set the base URL for web automation
- To use a nearby stable element as a reference to find unreliable elements (Correct answer)
- To anchor the UiPath robot to a specific desktop
- To lock a selector from being edited
Correct answer: To use a nearby stable element as a reference to find unreliable elements
Anchor Base uses a reliable nearby element as a spatial anchor to locate another element whose own selector may be dynamic or unreliable.
Question 6: In UiPath, what does the 'idx' attribute in a selector represent?
- The unique ID of the element assigned by the OS
- The index of the element when multiple elements share the same attributes (Correct answer)
- The input/output index for data extraction
- The image recognition index for computer vision
Correct answer: The index of the element when multiple elements share the same attributes
The 'idx' attribute represents the positional index used to differentiate between multiple elements that have identical attribute values.
Question 7: Which UiPath feature allows automating applications where traditional selectors are not reliable, using image and OCR recognition?
- Native Text Automation
- Computer Vision Activities (Correct answer)
- Anchor Base
- UI Descriptors
Correct answer: Computer Vision Activities
Computer Vision Activities use AI-powered image and OCR recognition to identify and interact with UI elements when standard selectors fail.
What is a selector in UiPath?