fromExistingSessionSync function
AppiumWebDriver
fromExistingSessionSync(
- 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
AppiumWebDriver fromExistingSessionSync(String sessionId, WebDriverSpec spec,
{Uri? uri, Map<String, dynamic>? capabilities}) =>
core.fromExistingSessionSync(
(prefix) => AsyncIoRequestClient(prefix), sessionId, spec,
uri: uri, capabilities: capabilities);