Courseiva

CCNA Advanced Ui Automation Questions

30 questions · Advanced Ui Automation topic · All types, answers revealed

1
MCQeasy

Which activity is best suited for typing secure passwords into a field that does not support standard text input methods?

A.Type Into activity using a standard String variable.
B.Type Secure Text activity with a SecureString variable.
C.Set Text activity configured with a hidden variable.
D.Simulate Click followed by Send Hotkey.
AnswerB

The Type Secure Text activity is built specifically to interact with SecureString objects, ensuring that password data remains encrypted during the input process. This activity is the industry-standard method for handling credentials, protecting them from exposure in system memory or debugging tools during the robot's execution.

Why this answer

The 'Type Secure Text' activity is specifically designed to handle SecureString objects, which are encrypted in memory. This is critical for security compliance in enterprise environments, as it prevents credentials from being exposed in plain text logs or memory dumps. Using this activity ensures that sensitive information is handled according to security best practices throughout the automation execution lifecycle.

Exam trap

Candidates often use the standard 'Type Into' activity for passwords, failing to realize it exposes sensitive data in logs and memory, which is a major security compliance violation.

2
Multi-Selectmedium

You are building an automation that must interact with a Citrix-published application where no UI Automation provider is available. You decide to use UiPath Computer Vision activities. Which two configurations are required for the CV activities to work correctly? (Choose two.)

Select 2 answers
A.Ensure the CV screen scope has a valid Computer Vision server endpoint and API key configured in Orchestrator or Studio.
B.Install and configure the UiPath.UIAutomation.Activities package only, because CV is included in the standard UI Automation package.
C.Enable the UiPath Remote Runtime on the Citrix server and register the Citrix extension in Studio.
D.Set the Target.WaitForReady property to None on every CV activity to improve detection speed.
E.Place the CV activities inside a CV Screen Scope activity that targets the Citrix window or the whole desktop.
AnswersA, E

CV activities call a Computer Vision server to detect elements, so the scope needs a valid endpoint and key. In cloud or on-premises Orchestrator this is configured as a Computer Vision service, and Studio can also use a local key. Without a valid endpoint and key, the CV activities fail at runtime with a connection error.

Why this answer

CV activities require a CV Screen Scope to define the analyzed region and a valid Computer Vision server endpoint with an API key. The scope gives CV the visual context of the Citrix window or desktop, and the endpoint enables the CV service to detect elements from pixels. The Remote Runtime and Citrix extension are an alternative UI Automation approach, and WaitForReady tuning is unrelated to CV detection, so those options are not required.

Exam trap

The trap here is confusing the Remote Runtime and Citrix extension, which enable UI Automation for Citrix, with the CV Screen Scope and server endpoint that Computer Vision actually needs.

3
MCQmedium

You are designing a workflow to extract data from a web page that loads content asynchronously. Which activity combination is best suited to ensure the robot waits for specific elements to appear before extraction?

A.Use a 'Delay' activity with a fixed time of 10 seconds before the extraction activity.
B.Use the 'Check App State' activity to verify the existence of the element before proceeding.
C.Configure the 'WaitForReady' property to 'Complete' in the 'Attach Browser' container only.
D.Wrap the entire process in a 'Retry Scope' activity to repeatedly attempt extraction until success.
AnswerB

The 'Check App State' activity provides a clean, native way to handle asynchronous elements. It checks for element presence with a configurable timeout and provides separate branches for success or failure, allowing for elegant error handling and synchronization without relying on hardcoded delays or brittle logic.

Why this answer

Asynchronous content loading often results in elements not being present immediately when the page finishes navigation. Using 'Wait Element Appear' or 'Check App State' provides a synchronization point, ensuring the robot pauses until the target is ready. This pattern prevents race conditions, which are the most common cause of intermittent failures in web automation projects, thereby ensuring high stability.

Exam trap

Candidates often rely on fixed 'Delay' activities to handle asynchronous loading, leading to brittle workflows that fail randomly when network latency fluctuates.

4
MCQmedium

You are automating a legacy desktop application where the UI elements do not support standard selectors. Which approach provides the most robust automation while maintaining high execution speed?

A.Use full-screen OCR for every single element interaction.
B.Automate the entire process using only mouse click coordinates.
C.Use the Image automation activity with a stable anchor for the target.
D.Force the application to run in a web-browser emulation mode.
AnswerC

Image anchoring provides a relative reference point, ensuring that even if the target area shifts, the robot identifies it based on the static anchor. This method is highly effective for legacy applications where selectors are inaccessible, offering a balanced trade-off between execution speed and reliable UI element identification.

Why this answer

Image-based automation is the standard fallback for legacy applications lacking accessibility frameworks. By combining Image anchors with relative positioning, you ensure the robot can locate target elements even if the window layout shifts slightly. This approach is critical for legacy systems where traditional selectors are unavailable, as it relies on visual patterns rather than underlying DOM structure, ensuring stability in non-standard UI environments.

Exam trap

Candidates often use Image automation alone without anchors, causing the robot to fail if the application window is resized or moved, leading to high maintenance overhead.

5
MCQhard

You are automating a desktop application that opens multiple child windows with identical titles. You must interact with the third window in the order it was opened. Which UiPath approach is most reliable for selecting that specific window instance?

A.Use the 'Use Application/Browser' activity with the window title as the selector and enable 'Open in new window'.
B.Use the 'Window' activities with a selector that includes a stable attribute unique to the third window, such as a distinct title suffix or a child element that only that instance contains.
C.Use the 'Get Process' activity to retrieve the process, then index into its MainWindowHandle collection to pick the third window.
D.Use the 'Find Window' activity with a selector that includes the window's process id and its instance index, then pass the result to subsequent UI activities.
AnswerB

Selecting a specific instance among same-titled windows requires a distinguishing attribute. If the third window has a unique title suffix, a distinctive child element, or another stable property, including it in the selector ensures the correct instance is targeted. This avoids ambiguity and remains reliable as long as the distinguishing attribute persists across runs.

Why this answer

When multiple windows share a title, title-only selectors are ambiguous and may attach to the wrong instance. The reliable method is to include an attribute unique to the target window, such as a title suffix or a child element present only in that instance. This makes the selector unambiguous and keeps subsequent UI activities pointed at the intended window.

Exam trap

The trap here is assuming that window ordering or an index can be used to disambiguate same-titled windows, when selectors require a stable distinguishing attribute.

6
Multi-Selecthard

Which THREE factors must be considered when determining if 'Computer Vision' (CV) activities should be used instead of standard UI automation?

Select 3 answers
A.The target application runs inside a Citrix or RDP environment without local UiPath extensions.
B.The application is a standard modern web browser with a fully exposed DOM tree.
C.The application utilizes non-standard UI frameworks that do not support accessibility APIs.
D.The project requires high-speed, sub-millisecond execution for thousands of small interactions.
E.The UI layout remains static, but the technical attributes of elements change on every session.
AnswersA, C, E

In environments where local extensions cannot be installed, standard selectors are unavailable. CV uses visual recognition, allowing the robot to 'see' and interact with the UI like a human, making it the primary solution for remote desktop automation when deep integration is blocked by infrastructure.

Why this answer

Computer Vision is a specialized tool for scenarios where standard selectors are unavailable, such as VDI environments, remote desktops, or Flash-based applications. Understanding these factors helps developers choose the right tool for the job. Misapplying CV in standard web scenarios can lead to performance degradation, so distinguishing when to use it is essential for professional-grade architectural decision-making.

Exam trap

Candidates often choose Computer Vision for standard web applications where robust standard selectors are readily available, leading to unnecessarily slower execution speeds and higher resource usage.

7
MCQmedium

You are automating a process that interacts with a SAP GUI transaction. The standard UiPath UI Automation activities can see the SAP window and its menu bar, but cannot detect the individual fields inside the transaction area. Which configuration should you apply to enable reliable element detection inside the SAP transaction?

A.Change the project's UI Automation framework to 'AA' and re-indicate the SAP transaction fields, because Active Accessibility exposes all SAP controls.
B.Use the 'UiPath.SAP.Activities' package and replace all UI Automation activities with its dedicated SAP activities, because they do not require any server-side configuration.
C.Set the UiPath.UIAutomation.Activities package to use the 'Java' framework and re-indicate the elements, because SAP GUI is built on Java.
D.Enable the 'SAP GUI Scripting' setting on both the SAP server and the SAP GUI client, and ensure the UiPath.UIAutomation.Activities package is configured to use the SAP framework.
AnswerD

SAP GUI Scripting must be enabled server-side and client-side to expose the internal transaction fields to automation tools. UiPath's UI Automation package includes a SAP framework that leverages this scripting interface to detect individual controls. Without both server and client scripting enabled, the transaction area remains a single opaque canvas, and no framework switch can expose its elements.

Why this answer

SAP GUI transaction fields are only exposed to automation when SAP GUI Scripting is enabled on both the server and the client. UiPath's UI Automation activities can then use the SAP framework to detect and interact with individual controls inside the transaction area. Framework changes like AA or Java do not apply because SAP GUI does not expose those accessibility providers for its internal fields.

Exam trap

The trap here is assuming that switching the UI Automation framework alone can expose SAP transaction fields, when the prerequisite is enabling SAP GUI Scripting on both server and client.

8
MCQeasy

What is the primary function of the 'Selector Editor' in UiPath Studio?

A.To record user actions and generate activities.
B.To validate and tune the selector for element identification.
C.To set the execution time of the activity.
D.To capture screenshots of the application.
AnswerB

The Selector Editor provides a visual and logical interface to verify if a selector can successfully find an element. It allows developers to customize the matching attributes, add wildcards, and test the selector against the application, which is the standard procedure for building reliable automation workflows.

Why this answer

The Selector Editor is the primary interface for validating, modifying, and tuning selectors. It allows developers to see the hierarchy of the element and toggle specific attributes to make a selector more or less generic. This tool is vital because creating and testing selectors directly within the editor ensures they accurately identify the target element before the robot enters the production phase, preventing common 'Element Not Found' errors.

Exam trap

Many candidates confuse the Selector Editor with the UI Explorer, thinking they need the advanced tool for basic validation, which leads to over-complicating simple selector tuning tasks.

9
MCQmedium

When automating a web application, you notice the selectors are extremely unstable due to dynamically generated IDs. What is the most effective way to improve selector reliability?

A.Use the Repair button in the Selector Editor every time it fails.
B.Use UI Explorer to find static attributes or tag hierarchies.
C.Switch all automation to use relative Image-based selectors.
D.Hardcode the element path using absolute Index attributes.
AnswerB

UI Explorer allows developers to inspect the entire element tree to find static attributes that persist across sessions. By filtering out dynamic properties like IDs and focusing on stable markers, you create a selector that is resistant to changes, significantly improving the robustness and longevity of the automation process.

Why this answer

Using UI Explorer to identify reliable, non-dynamic attributes like 'aaname', 'innertext', or custom 'data-id' attributes is the most effective way to stabilize selectors. This is important because relying on auto-generated IDs usually leads to automation failure after application deployments. By creating a robust selector based on static visual or structural properties, developers ensure long-term stability and reduce the need for frequent maintenance as the web application evolves.

Exam trap

Candidates frequently attempt to 'fix' dynamic IDs by using wildcards like '*' on the entire ID attribute, which often leads to inaccurate element identification and frequent automation failures during runtime.

10
MCQhard

Why is the use of 'SimulateClick' generally preferred over the 'Click' activity with 'HardwareEvents' in high-performance automation?

A.It is safer to use because it simulates real human behavior.
B.It allows the automation to run in the background without screen focus.
C.It supports all legacy applications that fail with standard clicks.
D.It is easier to debug because it generates logs of every click.
AnswerB

SimulateClick functions by communicating directly with the UI thread, meaning it does not require the mouse to physically hover over the element. This allows the process to run in the background, enabling multitasking and increasing the density of robots that can run on a single machine simultaneously.

Why this answer

SimulateClick interacts directly with the application's underlying code by sending messages, which is significantly faster and more reliable. Unlike HardwareEvents, which mimic actual mouse drivers and can be interrupted by a user moving the mouse, SimulateClick works in the background. This allows the robot to perform tasks while the screen is locked, which is a requirement for unattended automation at scale and enhances overall process stability.

Exam trap

Candidates often default to 'Click' with HardwareEvents because it is easier to implement, failing to realize it requires an active, unlocked screen and is susceptible to user interference.

11
MCQhard

When automating a legacy Java application, the standard UI Automation activities fail to detect internal table elements. What is the most appropriate configuration to enable element recognition?

A.Enable the Java extension via the 'Tools' menu in UiPath Studio and restart the application.
B.Use the 'OCR' engine exclusively to read the screen and interpret the Java table data.
C.Modify the application's source code to add automation IDs to every table cell.
D.Set the 'CursorMotionType' property to 'Smooth' in the Project Settings.
AnswerA

The Java extension is mandatory for UiPath to inject the necessary hooks into the Java Runtime Environment. Without this installation, the automation engine cannot traverse the Java UI hierarchy, rendering elements invisible to the recorder and the selector editor. This is the primary prerequisite for Java automation.

Why this answer

Java applications often require specific extensions and settings to expose their internal UI tree to the UiPath automation engine. By enabling the Java extension and configuring the 'UIAutomationCore' correctly, you bridge the gap between the application's native components and the studio. This is a fundamental skill for developers working in enterprise environments where legacy software lacks standard web or desktop accessibility hooks.

Exam trap

Candidates frequently attempt to fix missing legacy element recognition by modifying selectors within Studio, overlooking the mandatory requirement to enable external application extensions.

12
MCQmedium

Which approach is recommended for handling a web page that loads elements asynchronously using AJAX?

A.Always add a 10-second delay after every navigation activity.
B.Use a Retry Scope to repeatedly check for the element's existence.
C.Disable AJAX in the browser settings for better compatibility.
D.Use the 'Wait For Ready' property set to 'None'.
AnswerB

The Retry Scope pattern is ideal for asynchronous scenarios where the element may not appear immediately. By checking for the presence of the element in a loop, the robot maximizes efficiency by proceeding the moment the element is rendered, without hardcoding arbitrary wait times that break during network variations.

Why this answer

Using a 'Retry Scope' combined with a 'Check App State' activity is the most robust way to handle asynchronous elements. AJAX-based applications often load content dynamically after the initial page structure is ready. A simple wait is unreliable, but a retry pattern allows the robot to continuously check for the specific element until it appears, ensuring the automation waits exactly as long as needed for the content to load.

Exam trap

Candidates often use a fixed 'Delay' activity, which is brittle and fails if the network is slow, or succeeds unnecessarily early, making the automation unstable and prone to errors.

13
MCQhard

A Citrix-published application must be automated. Standard UiPath UI Automation activities return empty selectors because the remote session exposes no accessible UI tree. Which UiPath capability should be enabled to allow reliable element targeting in this environment?

A.The 'UiPath.Threading.Activities' package's 'Parallel' activity, which executes UI actions on separate threads to bypass session isolation.
B.Computer Vision with the UiPath Computer Vision server, enabling the CV activities and the CV screen scope.
C.The 'UiPath.UIAutomation.Activities' package's 'Active Accessibility' mode, which reads MSAA data from the remote session.
D.The 'Simulate Click' input mode, which injects input directly into the remote application's message queue.
AnswerB

Computer Vision uses image recognition and OCR to identify UI elements on screen, so it does not depend on an accessible UI tree. In Citrix or RDP sessions where the local machine sees only a bitmap, CV still locates buttons, fields, and text by their visual appearance. Wrapping activities in a CV Screen Scope and enabling the CV server connection makes targeting reliable in this environment.

Why this answer

When a Citrix or RDP session presents only a bitmap to the local machine, accessibility-based selectors cannot be built. Computer Vision identifies elements by their rendered appearance using OCR and image matching, making it the appropriate capability. Enabling the CV server and using CV Screen Scope provides reliable targeting in environments where the UI tree is inaccessible.

Exam trap

The trap here is assuming that changing input mode or accessibility mode restores element detection, when the real limitation is the absence of any locally accessible UI tree.

14
Multi-Selectmedium

Which TWO of the following are primary advantages of using 'Simulate' or 'SendWindowMessages' over 'Default' input methods?

Select 2 answers
A.They support the interaction with hidden elements that are not currently visible on the screen.
B.They operate in the background, allowing the user to work on the machine without interference.
C.They are significantly faster because they do not wait for the application to finish rendering.
D.They provide higher reliability by interacting directly with the application's API or message queue.
E.They automatically handle all browser-based alert dialogs without additional activity configuration.
AnswersB, D

By sending messages directly to the application window, these methods avoid moving the physical mouse cursor. This allows users to perform other tasks on the workstation simultaneously without disrupting the automation process, which is a core requirement for efficient shared-resource environments or unattended robot setups.

Why this answer

Simulate and SendWindowMessages are background-capable input methods that provide higher speed and reliability by bypassing the mouse cursor or keyboard focus. Understanding these differences is vital for developers to optimize execution speed and ensure automation remains functional even when the user is actively working on the machine, thereby maximizing the efficiency and scalability of unattended robot deployments.

Exam trap

Candidates often assume that Simulate methods work universally across all desktop and legacy applications, forgetting they require specific underlying application hooks and technology support.

15
MCQmedium

You are building a selector for a button inside a web application. The button's parent container has a stable id, but the button itself has a dynamically generated class and no unique attributes. Which selector configuration strategy is most robust for this element?

A.Build the selector using only the button's dynamic class attribute and enable the fuzzy selector to tolerate changes.
B.Anchor the selector to the stable parent id and add the button's tag name and its position among siblings.
C.Use the stable parent id as an anchor and identify the button by its accessible name or inner text, whichever is stable at runtime.
D.Use a full XPath from the document root that references each ancestor's tag name in sequence.
AnswerC

Anchoring on the stable parent id narrows the search scope, and identifying the button by a stable attribute such as its accessible name or inner text distinguishes it from siblings without relying on generated classes. This combination survives class regeneration and minor layout changes, making it the most robust configuration when the parent is stable.

Why this answer

The most robust approach combines a stable anchor with a distinguishing stable attribute. The parent id is stable, so anchoring on it reduces ambiguity, and the button's accessible name or inner text differentiates it from siblings. This avoids dependence on generated classes, positional indexes, or absolute paths, all of which break under routine application changes.

Exam trap

The trap here is treating the dynamic class as fixable with fuzzy matching, when fuzzy matching only absorbs minor variations in an otherwise stable value.

16
Multi-Selecthard

Which THREE of the following are benefits of using the Object Repository in UiPath Studio?

Select 3 answers
A.Enforces a centralized management of UI elements.
B.Automatically fixes broken selectors without human intervention.
C.Improves reusability across multiple automation projects.
D.Increases execution speed of the robot at runtime.
E.Enables better team collaboration through version control.
AnswersA, C, E

Centralization allows for a single source of truth for all UI selectors. When an application's UI changes, the developer updates the element in the Object Repository once, and all workflows using that descriptor are automatically updated, significantly streamlining maintenance efforts and reducing the risk of inconsistent selector definitions.

Why this answer

The Object Repository centralizes UI descriptors, enabling consistent reuse across multiple processes. By decoupling the UI structure from the automation logic, developers can update an element's selector in one central location rather than searching through hundreds of activities. This is a best practice that drastically reduces maintenance time, prevents duplicate selector definitions, and ensures that automation projects are modular, scalable, and easier to manage in large-scale enterprise environments.

Exam trap

Candidates often think Object Repository is only for large teams, missing its core value in reducing maintenance time by centralizing selector management in a single location.

17
Multi-Selecthard

A developer is automating a Citrix-published application. Standard UI Automation activities cannot see any elements inside the Citrix session, so the team decides to use UiPath Computer Vision (CV) activities. Which two statements about Computer Vision in this scenario are correct? (Choose two.)

Select 2 answers
A.CV activities automatically generate stable selectors that are stored in the Object Repository and can be reused without re-indication.
B.CV activities can interact with elements inside a Citrix session because they analyze pixels from screenshots rather than relying on the operating system's accessibility tree.
C.CV activities eliminate the need for the Citrix session to be visible on the screen, because they can capture hidden windows.
D.CV activities require the UiPath Computer Vision server and a valid API key configured in Orchestrator or in the activity properties.
E.CV activities are always faster than standard UI Automation activities because they process screenshots in parallel.
AnswersB, D

Computer Vision works by capturing screenshots of the target application and using OCR and image analysis to identify elements. This approach bypasses the accessibility tree entirely, which is why it can see elements inside a Citrix session where standard UI Automation cannot. It is the primary reason CV is recommended for virtualized environments like Citrix.

Why this answer

Computer Vision is designed for environments like Citrix where the accessibility tree is unavailable. It requires the UiPath Computer Vision server and an API key, and it works by analyzing screenshots, which allows it to see elements inside a virtualized session. It does not generate Object Repository selectors, does not work with hidden windows, and is not inherently faster than UI Automation.

Exam trap

The trap here is assuming that Computer Vision can see hidden windows or automatically create reusable selectors, when it actually requires visible screens and a configured server with an API key.

18
MCQmedium

You are automating a web application that uses dynamically generated IDs for its input fields. The IDs change every time the page loads, causing selectors with the 'id' attribute to fail. Which selector strategy should you use to create stable selectors for these fields?

A.Use the 'id' attribute with a wildcard, such as id='input_*', to match the dynamic portion of the ID.
B.Use the 'aaname' attribute or the 'name' attribute if it is stable, combined with the 'class' attribute and the element's position in the DOM.
C.Use the 'css-selector' attribute with a selector that targets the element by its nth-child position in the DOM.
D.Use the 'tag' attribute alone, such as tag='INPUT', because it will match all input fields and UiPath will automatically pick the correct one.
AnswerB

When IDs are dynamic, stable attributes such as 'aaname' (accessible name) or 'name' are better anchors. Combining them with 'class' and a relative position in the DOM (e.g., using the 'idx' attribute) creates a robust selector that does not depend on the volatile ID. UiPath's selector editor allows adding these attributes and validating the selector against multiple page loads.

Why this answer

When element IDs are dynamically generated, selectors should rely on other stable attributes such as 'aaname', 'name', or 'class', often combined with a relative position in the DOM. This creates a selector that remains valid across page loads. Wildcards, pure CSS positional selectors, and tag-only selectors are either too fragile or too generic to be reliable in this scenario.

Exam trap

The trap here is assuming that a wildcard on the dynamic ID will always work, when in fact the entire ID may change and wildcards can introduce ambiguity.

19
MCQhard

You are automating a web application that renders a data grid inside an iframe. Standard UiPath UI Automation activities can see the iframe but not the grid inside it, and the grid's rows are generated by JavaScript after the iframe loads. Which UiPath approach should you use to interact with the grid rows reliably?

A.Use the UiPath 'Use Application/Browser' activity on the parent page, then add a 'Window Scope' or nested 'Use Application/Browser' with the iframe selector to reach the grid.
B.Use the UiPath 'Navigate To' activity with the iframe URL, then use the 'Extract Structured Data' activity on the grid.
C.Use the UiPath Browser automation activities with the Attach Browser activity targeting the iframe's URL, then use Click and Get Text on the grid rows.
D.Use the UiPath 'Use Application/Browser' activity with the iframe URL, then use the 'Indicate on screen' feature to select the grid rows directly.
AnswerA

Nesting a scope whose selector targets the iframe element lets UiPath switch the automation context into the frame's document, where the grid and its JavaScript-generated rows are visible. This is the supported way to cross iframe boundaries, and once inside the nested scope, standard UI Automation activities can find and interact with the grid rows reliably.

Why this answer

The correct approach is to nest a scope that targets the iframe element inside the parent browser scope, which switches the automation context into the iframe's document. Once inside, the JavaScript-generated grid rows are visible to standard UI Automation activities. Attach Browser, Use Application/Browser on the iframe URL, and Navigate To all operate on top-level windows or URLs, so they cannot cross the iframe boundary and leave the grid unreachable.

Exam trap

The trap here is assuming that targeting the iframe's URL with Attach Browser or Navigate To is equivalent to entering the iframe, when those activities only affect the top-level browser window.

20
Multi-Selecthard

Which TWO of the following scenarios are best addressed by using the 'Anchor Base' activity?

Select 2 answers
A.The target element has a unique, static ID.
B.The target element's selector is dynamic and changes on every refresh.
C.The target element is inside an iframe that periodically changes.
D.The target element has no stable selector but is adjacent to a static label.
E.The target element is an image that never changes.
AnswersB, D

When an element's properties are volatile, anchoring it to a neighboring element with a static label is a standard and robust strategy. This allows the robot to find the target by its relative position rather than its internal attributes, which is perfect for handling dynamic UI layouts.

Why this answer

The 'Anchor Base' activity is essential when an element's selector is either highly dynamic or non-existent, but it maintains a consistent spatial relationship with a static label or icon. This is a common requirement in legacy desktop applications or complex web forms. Mastering anchor-based identification allows developers to create resilient automation that doesn't rely solely on fragile ID attributes, ensuring reliability when the application structure changes.

Exam trap

Candidates often assume Anchor Base is only for dynamic selectors, missing that it is also the primary solution for elements that lack any unique, stable ID attributes entirely.

21
MCQhard

A developer is building an automation that must click a button inside a web application embedded in an Internet Explorer-mode window. The button is rendered by a third-party ActiveX control that does not respond to UIAutomation clicks, and the application window must remain in the foreground. Which input method should be configured on the Click activity to maximize the chance of success while keeping the interaction as reliable as possible?

A.SendWindowMessages set to True, because it posts the click to the window handle and works even when the element is not fully visible.
B.HardwareEvents with the window activated and the element brought into view, because it generates real mouse input at the OS level that the ActiveX control will process like a user click.
C.Set the Click activity's Target property to use the 'CV' scope and configure the ClickType as 'Single', because Computer Vision bypasses all input method limitations.
D.SimulateClick set to True, because it dispatches the click directly to the target element through the accessibility layer without moving the physical cursor.
AnswerB

HardwareEvents uses the Windows SendInput API to move the physical cursor and generate genuine mouse events, which any control that responds to user input, including ActiveX, will process. The scenario requires the window to remain in the foreground, which aligns with HardwareEvents' need for the target to be visible and active. This is the most reliable option when accessibility-based methods fail.

Why this answer

ActiveX controls embedded in browser windows frequently ignore accessibility-based input methods because they do not expose the necessary interfaces. HardwareEvents generates genuine OS-level mouse input that the control processes like a real user click, and the requirement that the window stay in the foreground is compatible with this method. SimulateClick and SendWindowMessages are more efficient when supported, but here they are likely to fail silently.

Exam trap

The trap here is assuming that SimulateClick or SendWindowMessages always work and are preferable for performance, when controls that do not expose accessibility interfaces require real hardware input.

22
MCQhard

You are automating a WPF application whose window title changes with the logged-in user, and whose main content is hosted inside a dynamically created tab control. Using the default selector generated by UiPath Studio, the automation intermittently fails to find the tab. Which selector strategy should you apply to make the selector resilient?

A.Enable the UiPath UI Automation 'Fuzzy selector' option on the activity and leave the original selector unchanged.
B.Switch every activity in the workflow to use the Classic experience and set the Target.WaitForReady property to None.
C.Use the UiPath Selector Editor to add an anchor based on the tab's static AutomationId, and replace volatile attributes with wildcards.
D.Replace the full selector with a single wildcarded window title attribute and rely on the default timeout to locate the tab.
AnswerC

The Selector Editor lets you inspect the element tree, add a stable anchor such as the tab's static AutomationId, and wildcard attributes that change per session. Anchoring on AutomationId gives a deterministic match even when the window title or dynamic tab container changes, which is the recommended way to stabilize selectors for WPF controls.

Why this answer

The Selector Editor is the right tool because it exposes the element tree and lets you replace volatile attributes with wildcards while adding a stable anchor such as AutomationId. For WPF tab controls, AutomationId is typically static even when the window title and tab container change, so anchoring on it makes the selector deterministic. Fuzzy selectors and timeout changes only mask the problem, and a single wildcarded title is too loose to reliably locate the tab.

Exam trap

The trap here is believing that enabling fuzzy selector matching or lowering wait times will fix a selector whose structure points at volatile attributes instead of a stable anchor.

23
MCQmedium

A developer is automating a Citrix-hosted legacy ERP application. Standard UI Automation activities fail because the ERP's UI elements are not exposed to the OS accessibility layer, and the developer must avoid installing agents on the Citrix server. Which UiPath capability should the developer use to reliably target and interact with the ERP's controls?

A.UI Automation activities with the UiPath Remote Runtime component installed on the Citrix server
B.UI Automation activities with the Java extension enabled and the JAB plugin injected into the Citrix session
C.Computer Vision activities with a CV screen scope and CV descriptors
D.Native Citrix automation using only keyboard shortcuts and image-based clicks without any UiPath extension
AnswerC

Computer Vision uses image recognition plus OCR and AI to identify UI elements by their visual appearance, so it can target controls in Citrix or other remote environments where the accessibility layer does not expose elements. It works without installing agents on the remote server, matching the constraint. CV descriptors can also be calibrated per resolution and reused across sessions, which is essential for stable Citrix automation.

Why this answer

Computer Vision is the correct choice because it targets UI elements visually rather than through the accessibility layer, which is necessary when the legacy ERP does not expose elements and no agent can be installed on the Citrix server. It uses OCR and image matching under a CV screen scope, allowing the developer to interact with controls reliably without server-side changes.

Exam trap

The trap here is assuming that the UiPath Remote Runtime component is always required for Citrix automation, even when the scenario forbids installing agents on the Citrix server.

24
Multi-Selecthard

Which THREE of the following practices are recommended for optimizing UI automation performance in large-scale enterprise environments?

Select 3 answers
A.Use 'Simulate Click' or 'SendWindowMessages' when possible.
B.Always set DelayAfter property to 5 seconds to ensure stability.
C.Use targeted selectors rather than full-screen searches.
D.Keep the selector tree as deep as possible for uniqueness.
E.Minimize the number of background process activities.
AnswersA, C, E

These methods interact directly with the application's underlying API or message queue, bypassing the need for physical mouse and keyboard drivers. This significantly increases execution speed and allows the automation to run in the background, which is essential for scaling processes in a virtualized or unattended production environment.

Why this answer

Optimizing UI automation requires a combination of efficient selector design, intelligent waiting strategies, and minimizing unnecessary interactions. These practices are crucial because inefficient automation consumes excessive hardware resources and leads to longer runtimes. By focusing on targeted selectors and avoiding redundant screen actions, developers ensure that their robots are performant, scalable, and capable of handling high-volume workloads without placing undue strain on the underlying infrastructure.

Exam trap

Candidates mistakenly assume that using full-screen searches and default click properties improves reliability, ignoring the performance drain and fragility they introduce.

25
Multi-Selecthard

A developer is automating a web application that uses a complex JavaScript framework. Standard UI Automation activities sometimes fail to detect elements, and the developer is considering using UiPath Computer Vision activities. Which two factors should the developer evaluate before deciding to use Computer Vision? (Choose two.)

Select 2 answers
A.The screen resolution and scaling must be consistent across all machines where the automation runs.
B.The application's UI elements must be exposed through the Microsoft UI Automation framework for CV to detect them.
C.The application must be running on a remote desktop or Citrix environment for CV to work.
D.The UiPath Computer Vision service requires an API key and internet connectivity to the UiPath cloud.
E.The developer must disable all other UI Automation activities and use only CV activities in the workflow.
AnswersA, D

Computer Vision relies on image recognition and OCR, so variations in screen resolution or scaling can cause elements to be misidentified or not found. Consistent resolution and scaling are critical for reliable CV automation. If the automation runs on machines with different display settings, the CV models may fail. Therefore, this is a key factor to evaluate before adopting CV.

Why this answer

Before adopting Computer Vision, the developer must evaluate screen resolution and scaling consistency, because CV depends on visual recognition, and must ensure the CV service has an API key and internet connectivity, as it is cloud-based. These two factors directly affect whether CV can function reliably and are prerequisites for its use.

Exam trap

The trap here is assuming that Computer Vision requires UI Automation exposure or is limited to remote environments, when in fact it is a visual technology with its own prerequisites.

26
MCQmedium

When using the 'Check App State' activity, which state configuration is most appropriate to ensure the application has successfully logged out before proceeding?

A.Set state to 'Target Appears' for the user profile icon.
B.Set state to 'Target Disappears' for the dashboard menu.
C.Use a fixed delay of 10 seconds to wait for the session.
D.Set state to 'Target Appears' for the main application window.
AnswerB

Configuring the activity to verify that the dashboard menu has disappeared is the correct way to confirm a successful logout. This pattern effectively monitors the UI transition, ensuring the robot only proceeds once the application state has officially shifted from authenticated to the anonymous login screen.

Why this answer

The 'Check App State' activity is designed to verify the presence or absence of UI elements. To confirm a logout, checking for the existence of a 'Login' button or the absence of a 'Dashboard' element is the most reliable method. This ensures that the robot correctly validates the application's state transition, preventing premature actions that could lead to data corruption or authentication errors during the next process iteration.

Exam trap

Candidates often check for the existence of a 'Logout' button, which may be present before the process is complete, leading to premature execution of subsequent workflow steps.

27
MCQeasy

A developer is automating a Windows desktop application and needs to extract text from a label that is part of a complex custom control. The label's text is not exposed via UI Automation properties. Which UiPath activity should the developer use to reliably retrieve the text?

A.Get Text activity with the 'Get Visible Text' method
B.Get Attribute activity with the 'text' attribute
C.Screen Scraping activity with the 'OCR' method
D.Data Scraping wizard configured to extract the label's text
AnswerC

Screen Scraping with the OCR method captures the text from the screen using optical character recognition, which does not rely on UI Automation properties. This allows it to read text from custom controls that do not expose their text. It is the most reliable approach when the element's text is not accessible via standard methods, as it works on the visual representation.

Why this answer

Screen Scraping with the OCR method uses optical character recognition to read text directly from the screen, bypassing the need for UI Automation exposure. This makes it the correct choice for extracting text from a custom control whose text is not accessible through standard properties, ensuring reliable retrieval regardless of the control's implementation.

Exam trap

The trap here is assuming that Get Text or Get Attribute can retrieve text from any control, when they actually depend on the element exposing its text through UI Automation.

28
MCQhard

You are automating a legacy Windows application that uses a grid control. The UI Automation activities can see the grid but not the individual cells within it. You need to extract data from a specific cell. Which UiPath feature should you use?

A.Use the 'Data Scraping' wizard to extract the entire grid
B.Use the 'Get Attribute' activity to retrieve the cell's value via its accessibility attributes
C.Use the 'Computer Vision' activities to identify and extract the cell content
D.Use the 'Get Text' activity with the 'OCR' property enabled
AnswerC

Computer Vision can recognize text and elements from screenshots, making it suitable for legacy applications where UI Automation fails. It can identify the grid structure visually and extract cell data via OCR or element recognition. This is the most reliable approach when the grid's internal cells are not exposed.

Why this answer

Computer Vision is specifically designed to handle UI elements that are not accessible via standard UI Automation. It uses image recognition to locate and read text within a grid, even if the underlying controls are not exposed. Other methods either rely on accessibility that is missing or are not suitable for extracting specific cell data.

Exam trap

The trap here is assuming that Data Scraping or Get Attribute can work with any grid, but they require the cells to be exposed as individual UI elements.

29
MCQmedium

You are automating a legacy Windows Forms application that renders its grid with a custom drawing surface. Standard UiPath UI Automation activities report the grid as a single opaque element, so you cannot read individual cells. Which UiPath approach should you use to reliably extract the grid cell values?

A.Attach a UiPath Browser automation session to the Windows Forms process and use Extract Structured Data with a web selector.
B.Enable the UiPath UIAutomationNext modern experience and re-indicate the grid with the default Strict selector, then use Get Text on each cell.
C.Add the application to the UiPath.Excel.Activities scope and use Read Range against the grid control to retrieve the values.
D.Use Computer Vision activities with the CV screen scope, then use CV Get Text or CV Extract Table to read the grid contents.
AnswerD

Computer Vision activities are designed exactly for cases where the standard UI Automation tree does not expose inner elements, such as custom-drawn grids. By anchoring on visual elements and using OCR plus CV Extract Table, UiPath can read the individual cells from the rendered pixels even though no accessibility nodes exist for them.

Why this answer

Computer Vision is the correct choice because the grid is rendered on a custom drawing surface and the accessibility tree exposes only one opaque element. CV activities anchor on visual appearance and use OCR to read pixels, which lets UiPath extract individual cell values that standard UI Automation and selectors cannot reach. Alternatives such as Excel activities, browser extraction, or re-indicating with Strict selectors cannot create accessibility nodes that the application never exposed.

Exam trap

The trap here is assuming that re-indicating with a modern Strict selector or switching to the modern experience will reveal inner elements that the application never published to the accessibility tree.

30
MCQhard

In an environment with high security, you are restricted from using UI Automation. Which alternative is best for interacting with a desktop application?

A.Surface Automation (Image/OCR) as the primary method.
B.Microsoft Active Accessibility (MSAA).
C.Injecting JavaScript directly into the desktop memory.
D.Using screen coordinates for every interaction.
AnswerB

MSAA is a foundational accessibility framework that allows the robot to programmatically identify elements when standard UI Automation frameworks are restricted. It provides a structured way to interact with UI components, ensuring the robot remains robust even when advanced accessibility features are disabled by security policies in the host environment.

Why this answer

The 'UI Automation' framework is a standard, but when access is restricted, 'Active Accessibility' (AA) or 'Microsoft Active Accessibility' (MSAA) is often the next best choice. These frameworks provide a standardized way for the robot to 'see' the application's structure. Understanding these alternatives is vital for developers working in restricted environments where standard UI hooks might be disabled, ensuring they can still build functional automation without compromising security policies.

Exam trap

Candidates often guess 'OCR' or 'Surface Automation' when UI automation is restricted, failing to recognize that MSAA is the standard accessibility framework for desktop application interaction.

Ready to test yourself?

Try a timed practice session using only Advanced Ui Automation questions.