androidx.test.uiautomator


Interfaces

Condition

Represents a condition to be satisfied.

IAutomationSupport

Provides auxiliary support for running test cases

UiWatcher

See registerWatcher on how to register a a condition watcher to be called by the automation library.

Classes

By

By is a utility class which enables the creation of BySelectors in a concise manner.

BySelector

A BySelector specifies criteria for matching UI elements during a call to findObject.

Configurator

Allows you to set key parameters for running UiAutomator tests.

EventCondition

An EventCondition is a condition which depends on an event or series of events having occurred.

SearchCondition

A SearchCondition is a condition that is satisfied by searching for UI elements.

UiAutomatorInstrumentationTestRunner

This class is deprecated.

as it only handles deprecated UiAutomatorTestCases.

UiAutomatorTestCase

This class is deprecated.

It is no longer necessary to extend UiAutomatorTestCase.

UiCollection

Used to enumerate a container's UI elements for the purpose of counting, or targeting a sub elements by a child's text or description.

UiDevice

UiDevice provides access to state information about the device.

UiObject

A UiObject is a representation of a view.

UiObject2

Represents a UI element, and exposes methods for performing gestures (clicks, swipes) or searching through its children.

UiObject2Condition

A UiObject2Condition is a condition which is satisfied when a UiObject2 is in a particular state.

UiScrollable

UiScrollable is a UiCollection and provides support for searching for items in scrollable layout elements.

UiSelector

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.

Until

The Until class provides factory methods for constructing common conditions.

Enums

Direction

An enumeration used to specify the primary direction of certain gestures.

Exceptions

StaleObjectException

A StaleObjectException exception is thrown when a UiObject2 is used after the underlying android.view.View has been destroyed.

UiObjectNotFoundException

Generated in test runs when a UiSelector selector could not be matched to any UI element displayed.