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

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.
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.
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.
Timeline
Timeline data recorded by the Flutter runtime.
TimelineEvent
A single timeline event.
TimelineSummary
Extracts statistics from a Timeline.

Constants

find CommonFinders
A convenient accessor to frequently used finders. [...]
const CommonFinders._()
kBuildBudget 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.
const Duration(milliseconds: 8)

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.