FlutterWebConnection class

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

Constructors

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

Properties

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

Methods

close() Future<void>
Closes the WebDriver.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
inherited

Operators

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

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.