fromExistingSessionSync function
- String sessionId,
- WebDriverSpec spec, {
- Uri? uri,
- Map<
String, dynamic> ? capabilities,
Creates an async WebDriver from existing session with a sync function using AsyncIoRequestClient.
The function is sync, so all necessary information (sessionId
, spec
,
capabilities
) has to be given. Because otherwise, making a call to
WebDriver server will make this function async.
This will bring in dependency on dart:io
.
Note: WebDriver endpoints will be constructed using resolve
against
uri
. Therefore, if uri
does not end with a trailing slash, the
last path component will be dropped.
Implementation
core.WebDriver fromExistingSessionSync(
String sessionId, core.WebDriverSpec spec,
{Uri? uri, Map<String, dynamic>? capabilities}) =>
core.fromExistingSessionSync(AsyncIoRequestClient.new, sessionId, spec,
uri: uri, capabilities: capabilities);