UiPath-ADPv1 Advanced UI Automation Practice Question
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?
⚠ Common 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.
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
✓
Screen Scraping activity with the 'OCR' method
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.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Get Text activity with the 'Get Visible Text' method
Why it's wrong here
Get Text with 'Get Visible Text' uses UI Automation to extract text from the element, but it relies on the element exposing its text through accessibility APIs. Since the label's text is not exposed, this method would fail to retrieve it. It is suitable for standard controls where text is accessible, but not for custom controls that block UI Automation.
- ✗
Get Attribute activity with the 'text' attribute
Why it's wrong here
Get Attribute retrieves a specific attribute value from a UI element, but it depends on the attribute being exposed through UI Automation. If the label's text is not exposed, the 'text' attribute would not be available. This activity is useful for retrieving properties like 'enabled' or 'class', but not for hidden text.
- ✓
Screen Scraping activity with the 'OCR' method
Why this is correct
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.
- ✗
Data Scraping wizard configured to extract the label's text
Why it's wrong here
The Data Scraping wizard is designed to extract structured data from multiple similar elements, such as tables or lists, not a single label. It relies on UI Automation to identify patterns and would not work if the element's text is not exposed. It is not suited for extracting text from a single custom control label.
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 →
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.