androidx.test.uiautomator


Interfaces

Condition

Represents a condition to be satisfied.

IAutomationSupport

Provides auxiliary support for running test cases

Searchable

The Searchable interface represents an object that can be searched for matching UI elements.

UiWatcher

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

Classes

AccessibilityNodeInfoExt
AccessibilityWindowInfoExt
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.

ResultsReporter

Allows to report test results to Android Studio.

SearchCondition

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

StableResult

Represents a node that is considered stable and it's returned by androidx.test.uiautomator.waitForStable.

UiAutomatorInstrumentationTestRunner

This class is deprecated.

as it only handles deprecated UiAutomatorTestCases.

UiAutomatorTestCase

This class is deprecated.

It is no longer necessary to extend UiAutomatorTestCase.

UiAutomatorTestScope

A UiAutomator scope that allows to easily access UiAutomator api and utils class.

UiAutomatorTestScopeKt
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.

UiDeviceExt
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.

UiObject2Ext
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.

UtilsKt

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.

ViewNotFoundException

Thrown when a view is not found after invoking androidx.test.uiautomator.onView or androidx.test.uiautomator.onViews.