Courseiva

UiPath-ADAv1 Debugging and Exception Handling Practice Question

A developer is debugging a workflow that intermittently throws a 'UiPath.Core.ElementNotFoundException' when clicking a button. The developer wants to inspect the state of the application and the variable values at the exact moment the exception occurs, without modifying the workflow logic permanently. Which approach best allows this?

⚠ Common exam trap

The trap here is assuming that logging or screenshots after the failure provide the same insight as pausing before the activity; however, only a breakpoint in Debug mode allows interactive inspection of variables and the live UI at the critical moment.

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

✓

Add a Breakpoint on the Click activity, run the workflow in Debug mode, and when execution pauses, use the Locals panel to inspect variables and the UI Explorer to examine the application state.

Debugging intermittent UI exceptions requires pausing execution at the point of failure to inspect live data. A Breakpoint on the Click activity, combined with Debug mode, pauses the workflow before the activity executes, enabling the developer to examine variables in the Locals panel and use UI Explorer to verify the application state. This method is non-invasive and provides the most detailed diagnostic information without altering workflow logic.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Wrap the Click activity in a Try Catch block, and in the Catch block use a Take Screenshot activity to capture the screen, then rethrow the exception.

    Why it's wrong here

    Capturing a screenshot in the Catch block provides a visual record but does not allow real-time inspection of variable values or interactive examination of the application. It also requires permanently modifying the workflow by adding Try Catch and Take Screenshot activities, which contradicts the goal of diagnosing without changing the logic.

  • ✗

    Add a Log Message activity immediately after the Click activity that writes the exception message to the Output panel, then run the workflow normally.

    Why it's wrong here

    A Log Message after the Click activity only executes if the Click succeeds; if the exception is thrown, the workflow jumps to exception handling and the log is skipped. This approach does not capture the application state at the moment of failure and requires modifying the workflow, which the developer wants to avoid.

  • ✗

    Set the Click activity's ContinueOnError property to True, run the workflow, and review the Output panel for the error message after execution completes.

    Why it's wrong here

    Setting ContinueOnError to True suppresses the exception and allows the workflow to continue, but it does not pause execution for inspection. The developer would only see a logged error after the run, without the ability to examine variables or application state at the moment of failure, and it modifies the activity's behavior.

  • ✓

    Add a Breakpoint on the Click activity, run the workflow in Debug mode, and when execution pauses, use the Locals panel to inspect variables and the UI Explorer to examine the application state.

    Why this is correct

    Breakpoints pause execution before the activity runs, allowing the developer to inspect variable values in the Locals panel and use UI Explorer to check the live application state. Running in Debug mode enables this without altering the workflow logic, and the developer can step through or resume as needed to diagnose the intermittent issue.

About these practice questions

One of 285 original UiPath-ADAv1 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-ADAv1 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-ADAv1 exam.