FlutterDriverUtils class

Constructors

FlutterDriverUtils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

enterText(FlutterDriver driver, SerializableFinder finder, String text, {Duration timeout: const Duration(seconds: 30)}) Future<void>
getText(FlutterDriver driver, SerializableFinder finder, {Duration timeout: const Duration(seconds: 30)}) Future<String>
isAbsent(FlutterDriver driver, SerializableFinder finder, {Duration timeout: const Duration(seconds: 30)}) Future<bool>
isPresent(FlutterDriver driver, SerializableFinder finder, {Duration timeout: const Duration(seconds: 1)}) Future<bool>
longPress(FlutterDriver driver, SerializableFinder finder, {Duration pressDuration: const Duration(milliseconds: 500), Duration timeout: const Duration(seconds: 30)}) Future<void>
tap(FlutterDriver driver, SerializableFinder finder, {Duration timeout: const Duration(seconds: 30)}) Future<void>
waitForFlutter(FlutterDriver driver, {Duration timeout: const Duration(seconds: 30)}) Future<bool>
waitUntil(FlutterDriver driver, Future<bool> condition(), {Duration timeout: const Duration(seconds: 10), Duration pollInterval: const Duration(milliseconds: 500)}) Future<void>
Waits until the condition returns true Will raise a complete with a TimeoutException if the condition does not return true with the timeout period.