flutter_driver library

Provides API to test Flutter applications that run on real devices and emulators.

The application runs in a separate process from the test itself.

This is Flutter's version of Selenium WebDriver (generic web), Protractor (Angular), Espresso (Android) or Earl Gray (iOS).

Classes

CombinedCondition
A combined condition that waits until all the given conditions are met.
Command
An object sent from the Flutter Driver to a Flutter application to instruct the application to perform a task.
CommonFinders
Provides convenient accessors to frequently used finders.
FirstFrameRasterized
A condition that waits until the Flutter engine has rasterized the first frame.
FlutterDriver
Drives a Flutter Application running in another process.
Health
A description of the application state, as provided in response to a FlutterDriver.checkHealth test.
LogRecord
A log entry, as emitted on flutterDriverLog.
NoPendingFrame
A condition that waits until no pending frame is scheduled.
NoPendingPlatformMessages
A condition that waits until there are no pending platform messages.
NoTransientCallbacks
A condition that waits until no transient callbacks are scheduled.
RenderTree
A string representation of the render tree, the result of a FlutterDriver.getRenderTree method.
Result
An object sent from a Flutter application back to the Flutter Driver in response to a command.
SerializableFinder
Base class for Flutter Driver finders, objects that describe how the driver should search for elements.
SerializableWaitCondition
Base class for Flutter Driver wait conditions, objects that describe conditions the driver can wait for. [...]
Timeline
Timeline data recorded by the Flutter runtime.
TimelineEvent
A single timeline event.
TimelineSummary
Extracts statistics from a Timeline.

Constants

find → const CommonFinders
A convenient accessor to frequently used finders. [...]
CommonFinders._()
kBuildBudget → const Duration
The maximum amount of time considered safe to spend for a frame's build phase. Anything past that is in the danger of missing the frame as 60FPS.
Duration(milliseconds: 16)

Properties

flutterDriverLog Stream<LogRecord>
Emits log records from Flutter Driver.
final
testOutputsDirectory String
Flutter Driver test output directory. [...]
read-only

Enums

HealthStatus
A description of application state.
LogLevel
Severity of a log entry.
TimelineStream
Timeline stream identifier.

Typedefs

EvaluatorFunction() → dynamic
Computes a value. [...]

Exceptions / Errors

DriverError
Standard error thrown by Flutter Driver API.