ASSOCIATE-ANDROID-DEVELOPER practice question 2 of 25
Android Tests. You can use the childSelector() method to nest multiple UiSelector instances. For example, the following code example shows how your test might specify a search to find the first ListView in the currently displayed UI, then search within that ListView to find a UI element with the text property Apps. What is the correct sample?
Full set: 128 questionsCorrect Answer:
B. val appItem: UiObject = device.findObject( UiSelector().className("android.widget.ListView")
.instance(0)
.childSelector(
UiSelector().text("Apps")
)
)
Keep practicing
Take the free ASSOCIATE-ANDROID-DEVELOPER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ASSOCIATE-ANDROID-DEVELOPER practice questions
- Question 1An overridden method onCreateOptionsMenu in an Activity returns boolean value. What does …
- Question 3What is a correct part of an Implicit Intent for sharing data implementation?
- Question 4As an example. Our MutableLiveData object, named mLapseTime, is not connected to a Room d…
- Question 5About queries in DAO classes. Room verifies the return value of the query such that if th…
- Question 6The following code snippet shows an example of an Espresso test:
- Question 7In a class extended PreferenceFragmentCompat. What method is used to inflate the given XM…
