ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 23 - Associate Android Developer discussion

Report
Export

If you want to access a specific UI component in an app, use the UiSelector class. This class represents a query for specific elements in the currently displayed UI. What is correct about it? (Choose two.)

A.
If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.
Answers
A.
If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.
B.
If no matching UI element is found, an IOException is thrown.
Answers
B.
If no matching UI element is found, an IOException is thrown.
C.
If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.
Answers
C.
If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.
D.
If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.
Answers
D.
If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.
Suggested answer: A, D
asked 18/09/2024
Victor Chacon
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first