FlutterDriverExtension class
The class that manages communication between a Flutter Driver test and the application being remote-controlled, on the application side.
This is not normally used directly. It is instantiated automatically when calling enableFlutterDriverExtension.
- Mixed-in types
- Annotations
Constructors
-
FlutterDriverExtension(DataHandler? _requestDataHandler, bool _silenceErrors, bool _enableTextEntryEmulation, {List<
FinderExtension> finders = const <FinderExtension>[], List<CommandExtension> commands = const <CommandExtension>[]}) - Creates an object to manage a Flutter Driver connection.
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
-
call(
Map< String, String> params) → Future<Map< String, dynamic> > -
Processes a driver command configured by
params
and returns a result as an arbitrary JSON object. -
createFinder(
SerializableFinder finder) → Finder -
Creates the flutter widget finder from SerializableFinder.
override
-
deserializeCommand(
Map< String, String> params, DeserializeFinderFactory finderFactory) → Command -
Deserializes the finder from JSON generated by Command.serialize or CommandWithTarget.serialize.
override
-
deserializeFinder(
Map< String, String> json) → SerializableFinder -
Deserializes the finder from JSON generated by SerializableFinder.serialize.
override
-
getDataHandler(
) → DataHandler? -
Gets DataHandler for result delivery.
override
-
handleCommand(
Command command, WidgetController prober, CreateFinderFactory finderFactory) → Future< Result> -
Deserializes the finder from JSON generated by Command.serialize or CommandWithTarget.serialize.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerTextInput(
) → void -
Registers text input emulation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForAbsentElement(
Finder finder) → Future< Finder> -
Runs
finder
repeatedly until it finds zero Elements.inherited -
waitForElement(
Finder finder) → Future< Finder> -
Runs
finder
repeatedly until it finds one or more Elements.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited