FlutterWebConnection class

Encapsulates connection information to an instance of a Flutter Web application.


FlutterWebConnection(WebDriver _driver, bool supportsTimelineAction)
Creates a FlutterWebConnection with WebDriver and whether the WebDriver supports timeline action.


hashCode int
The hash code for this object.
no setterinherited
logs Stream<LogEntry>
Gets performance log from WebDriver.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsTimelineAction bool
Whether the connected WebDriver supports timeline action for Flutter Web Driver.
getter/setter pair


close() Future<void>
Closes the WebDriver.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
screenshot() Future<List<int>>
Takes screenshot via WebDriver.
sendCommand(String script, Duration? duration) Future
Sends command via WebDriver to Flutter web application.
toString() String
A string representation of this object.


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

Static Methods

connect(String url, Map<String, dynamic> settings, {Duration? timeout}) Future<FlutterWebConnection>
Starts WebDriver with the given settings and establishes the connection to Flutter Web application.