The driver
The driver is the same object in every test runner; only the way a test gets it differs:app. With Jest write quiesco.app, in Cucumber steps
this.app. The fixed strings in the examples are constants (Direction.left,
Tag.native …), imported from the runner’s package (@quiesco/vitest, @quiesco/cucumber); with Jest
they are on the global as well (quiesco.Direction).
Under each method’s heading is its signature, and links to the types it names (MatcherInput,
TapOptions, ElementSummary …). They are exported by @quiesco/core, for helpers of your own:
import type { MatcherInput, TapOptions } from '@quiesco/core'.
Every call waits for the app
Every method isasync. Before it runs, it waits until the app is idle: no pending timers, requests,
renders or animations (synchronization). An action waits again after it is done. So a test never
sleeps or polls:
expectVisible, expectText, …) also retry until they hold, up to the call’s timeout.
Options every call takes
Every method takes an optional last argument:Finding elements
Most methods take a target: which element to act on. A string is atestID; an object combines
conditions such as the text, the role or the position. See matchers.
ELEMENT_NOT_FOUND if it does not appear in time (the message says whether it is missing or hidden).
Several matches fail at once with MULTIPLE_MATCHES. In native mode a touch must also be able to reach
the element: if a dialog or another view covers it, or a scroll view cuts off the point to touch, the
action fails with ELEMENT_OBSCURED naming what is in the way. A software keyboard covering the target is
dismissed first.
The API by topic
Matchers
How a target finds elements: test id, text, role, type, position, ancestors.
Actions
Tap, type, scroll, swipe, drag, go back, open a deep link.
Value controls
Switches, sliders, pickers, segmented controls, date pickers.
Multi-finger gestures
Pinch, rotate, and any touch paths.
Assertions
Visible, text, value, enabled, checked, count — retried until they hold.
Queries and state
Read elements and the tree, wait for idle, call backdoors, reset.
Runtime synchronization
Change what the driver waits for during a test.
App and device
Relaunch, background, orientation, dark mode, locale, network, clipboard.
System UI
Permission dialogs, biometrics, notifications, browser dialogs.
Screenshots
The screen, an element, or a whole scrolling page.
WebView
Elements of a web page inside the app.
In-app API
What the app registers: backdoors, reset hooks, storage, launch arguments.
Test tags
Run a test only on some platforms or browsers, or after a full restart.
Constants
Tags, directions, permissions, error names … as constants instead of hand-written strings.
Types
Every type the signatures name: options, results, matchers.
Errors
Every error a call can fail with, and what it means.
Artifacts
Screenshots, element trees, videos, logs and timelines of a run.
Other test runners
Vitest and Jest adapters in detail, and driving Quiesco from any runner.