Specifies the elements in the layout hierarchy for tests to target, filtered by properties such as text value, content-description, class name, and state information. You can also target an element by its location in a layout hierarchy.
Summary
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set the search criteria to match widgets that are checkable.
| |||||||||||
Set the search criteria to match widgets that
are currently checked (usually for checkboxes).
| |||||||||||
Adds a child UiSelector criteria to this selector.
| |||||||||||
Set the search criteria to match the class property
for a widget (for example, "android.widget.Button").
| |||||||||||
Set the search criteria to match the class property
for a widget (for example, "android.widget.Button").
| |||||||||||
Set the search criteria to match the class property
for a widget, using a regular expression.
| |||||||||||
Set the search criteria to match widgets that are clickable.
| |||||||||||
Set the search criteria to match the content-description
property for a widget.
| |||||||||||
Set the search criteria to match the content-description
property for a widget.
| |||||||||||
Set the search criteria to match the content-description
property for a widget.
| |||||||||||
Set the search criteria to match the content-description
property for a widget.
| |||||||||||
Set the search criteria to match widgets that are enabled.
| |||||||||||
Set the search criteria to match widgets that are focusable.
| |||||||||||
Set the search criteria to match widgets that have focus.
| |||||||||||
Adds a child UiSelector criteria to this selector which is used to
start search from the parent widget.
| |||||||||||
Set the search criteria to match the widget by its node
index in the layout hierarchy.
| |||||||||||
Set the search criteria to match the
widget by its instance number.
| |||||||||||
Set the search criteria to match widgets that are long-clickable.
| |||||||||||
Set the search criteria to match the package name
of the application that contains the widget.
| |||||||||||
Set the search criteria to match the package name
of the application that contains the widget.
| |||||||||||
Set the search criteria to match the given resource ID.
| |||||||||||
Set the search criteria to match the resource ID
of the widget, using a regular expression.
| |||||||||||
Set the search criteria to match widgets that are scrollable.
| |||||||||||
Set the search criteria to match widgets that
are currently selected.
| |||||||||||
Set the search criteria to match the visible text displayed
in a widget (for example, the text label to launch an app).
| |||||||||||
Set the search criteria to match the visible text in a widget
where the visible text must contain the string in your input argument.
| |||||||||||
Set the search criteria to match the visible text displayed in a layout
element, using a regular expression.
| |||||||||||
Set the search criteria to match visible text in a widget that is
prefixed by the text parameter.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|