Package-level declarations
Types
One accessibility node, read once into plain values.
Captures every window's accessibility tree as AccessibilityElements in one pass.
Saves a screenshot and the window hierarchy when a test fails, so a CI failure shows what was on screen.
An AndroidJUnitRunner that copies selected instrumentation arguments to system properties before tests start, so app code that reads System.getProperty (for example a base URL override) sees values passed with -e or testInstrumentationRunnerArguments.
Functions
Performs a real drag: presses at the origin, holds for holdMillis, moves to the destination over durationMillis, settles, and releases.
Returns the element to tap for the single element matching predicate.
Matches views whose ID has the resource entry name name, such as save for R.id.save.
Returns an instrumentation argument passed with -e name value or testInstrumentationRunnerArguments, such as a mock server URL.
Returns whether the on-screen keyboard is shown, from the window list rather than shell output.
Launches another installed app's launcher activity in a fresh task and waits for its window.
Launches the instrumented app's launcher activity in a fresh task.
Navigates back and reports whether the system accepted the action.
Scrolls until an object matching target is visible, within maxScrolls attempts.
Turns the system window, transition, and animator animations off or back on, so UI tests do not wait on, or race with, animations. Restore them when the suite finishes.
Sets the per-app languages of packageName, like choosing an app language in Settings.
Replaces the text of the single field matching selector and verifies the result.
Waits for exactly one object matching selector and returns it.
Waits until a view matching matcher is displayed.
Waits until no view matching matcher is displayed.