DVDriver class

The driver over the app on this host.

Constructors

DVDriver({Future<void> pump([Duration?])?})
pump advances frames on the headless test host (pass tester.pump); without it the driver waits in real time, as on a device or a browser.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Stops keeping the semantics tree alive for the driver.
find({String? label, String? role}) → String?
The ref of the first node with label (and role, when given).
logs({int since = 0}) → DVDriverLogs
Log records since since (a cursor from an earlier call), redacted as everywhere else.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scroll(String ref, {required DVScrollDirection toward}) → Future<void>
Scrolls the scrollable that holds ref one page toward a direction.
status() → Map<String, Object?>
The host, how many nodes the tree has, and the diagnostics (warnings and errors in the log) raised since the last status.
tap(String ref) → Future<void>
Activates ref, as a tap or a press of Enter would.
toString() → String
A string representation of this object.
inherited
tree({String? root}) → DVDriverTree
The semantics tree, whole or from root.
type(String ref, String text) → Future<void>
Sets the text of the field ref, focusing it first when it must be.
wait({Duration timeout = const Duration(seconds: 10)}) → Future<void>
Returns once nothing is scheduled: no frame, no animation. On timeout fails with DV-DRIVER-004 naming what was still pending, because "timed out" alone sends an agent back to adding a longer wait.

Operators

operator ==(Object other) → bool
The equality operator.
inherited