Courseiva

UiPath-ADPv1 Generic Automation Development Practice Question

A developer is building an unattended automation that must read values from a desktop application whose UI elements change their AutomationId each time the application restarts. The developer has validated that the element's visible label text is stable and unique on the screen. Which selector strategy should the developer apply to make the selector resilient across restarts?

⚠ Common exam trap

The trap here is assuming that any attribute present in the selector is trustworthy, when volatile attributes like a regenerated AutomationId must be replaced rather than wildcarded or stored externally.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Replace the volatile AutomationId attribute in the selector with the stable label attribute (for example aaname) and validate it with the Selector Editor and UI Explorer.

Selectors should rely on attributes that remain constant across sessions. When an AutomationId is regenerated on each launch, it is unsuitable as an anchor, but a stable visible label exposed through attributes such as aaname gives a durable match. Building that selector and confirming it in the Selector Editor or UI Explorer yields resilience without sacrificing specificity, which is the goal for unattended runs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Set the Targeting property of the activity to Image and capture a screenshot of the element on first run for later reuse.

    Why it's wrong here

    Image targeting depends on pixel appearance and screen resolution, and a screenshot captured on first run is fragile across themes, scaling, and layout shifts. It also cannot be validated against UI properties. Since the label text is stable and unique, a semantic selector is both more reliable and far easier to maintain than an image-based fallback.

  • ✗

    Add the volatile AutomationId to the selector together with a wildcard character so that any value is accepted at match time.

    Why it's wrong here

    Wildcarding the AutomationId effectively removes its discriminating power, so the selector may match multiple similar elements or none at all depending on the tree. It also leaves a meaningless attribute in the selector, making maintenance harder. The stable label attribute already provides a reliable anchor, so wildcarding the volatile attribute adds risk without benefit.

  • ✗

    Dynamically generate the selector at runtime by reading the AutomationId from a configuration asset and injecting it into the Selector property using a variable.

    Why it's wrong here

    AutomationIds change on every restart, so storing a value in an Orchestrator asset cannot produce a stable identifier over time. Even if the value is read at runtime, the stored asset goes stale the next time the application launches, and the injected selector will fail to match the target element, producing an activity timeout rather than a resilient selector.

  • ✓

    Replace the volatile AutomationId attribute in the selector with the stable label attribute (for example aaname) and validate it with the Selector Editor and UI Explorer.

    Why this is correct

    Because the visible label text is stable and unique, using the attribute that maps to that text (commonly aaname or innertext) produces a selector that survives application restarts. The Selector Editor and UI Explorer let the developer confirm the attribute matches the live element and that the selector remains valid without depending on the changing AutomationId.

About these practice questions

One of 276 original UiPath-ADPv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official UiPath exam blueprint

This UiPath-ADPv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADPv1 exam.