fromExistingSession function

Future<AppiumWebDriver> fromExistingSession(
  1. String sessionId, {
  2. Uri? uri,
  3. WebDriverSpec spec = WebDriverSpec.Auto,
  4. Map<String, dynamic>? capabilities,
})

Creates an async WebDriver from existing session using AsyncIoRequestClient.

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

Implementation

Future<AppiumWebDriver> fromExistingSession(String sessionId,
        {Uri? uri,
        WebDriverSpec spec = WebDriverSpec.Auto,
        Map<String, dynamic>? capabilities}) =>
    core.fromExistingSession(
        (prefix) => AsyncIoRequestClient(prefix), sessionId,
        uri: uri, spec: spec);