fromExistingSession function Null safety

Future<WebDriver> fromExistingSession(
  1. String sessionId,
  2. {Uri? uri,
  3. WebDriverSpec spec = WebDriverSpec.Auto}
)

Creates an async WebDriver from existing session using AsyncXhrRequestClient.

This will bring in dependency on dart:html. 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<core.WebDriver> fromExistingSession(String sessionId,
        {Uri? uri, WebDriverSpec spec = WebDriverSpec.Auto}) =>
    core.fromExistingSession(
        (prefix) => AsyncXhrRequestClient(prefix), sessionId,
        uri: uri, spec: spec);