Used to enumerate a container's user interface (UI) elements for the purpose of counting, or targeting a sub elements by a child's text or description.
Summary
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| UiCollection ( UiSelector selector) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| UiObject |
getChildByDescription
(
UiSelector
childPattern, String text)
Searches for child UI element within the constraints of this
UiSelector
selector.
|
||||||||||
| UiObject |
getChildByInstance
(
UiSelector
childPattern, int instance)
Searches for child UI element within the constraints of this
UiSelector
.
|
||||||||||
| UiObject |
getChildByText
(
UiSelector
childPattern, String text)
Searches for child UI element within the constraints of this
UiSelector
.
|
||||||||||
| int |
getChildCount
(
UiSelector
childPattern)
Counts child UI element instances matching the
childPattern
argument.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.android.uiautomator.core.UiObject
|
|||||||||||
From class
java.lang.Object
|
|||||||||||