fromExistingSession function
Future<AppiumWebDriver>
fromExistingSession(
- String sessionId, {
- Uri? uri,
- WebDriverSpec spec = WebDriverSpec.Auto,
- Map<
String, dynamic> ? capabilities,
Creates an async WebDriver from existing session using AsyncIoRequestClient.
Preserves capabilities when supplied, including Direct Connect settings.
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
Future<AppiumWebDriver> fromExistingSession(String sessionId,
{Uri? uri,
WebDriverSpec spec = WebDriverSpec.Auto,
Map<String, dynamic>? capabilities}) =>
core.fromExistingSession(
AsyncIoRequestClient.new, sessionId,
uri: uri, spec: spec, capabilities: capabilities);