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

logs Stream<LogEntry>
Gets performance log from WebDriver.
read-only
supportsTimelineAction bool
Whether the connected WebDriver supports timeline action for Flutter Web Driver
@visibleForTesting, read / write
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

close() Future<void>
Closes the WebDriver.
screenshot() Future<List<int>>
Takes screenshot via WebDriver.
sendCommand(String script, Duration duration) Future
Sends command via WebDriver to Flutter web application
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 ==(dynamic 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.