createDriver function

WebDriver createDriver (
  1. {Uri uri,
  2. Map<String, dynamic> desired,
  3. WebDriverSpec spec: core.WebDriverSpec.Auto}

Creates a new sync WebDriver using SyncHttpRequestClient.

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.


core.WebDriver createDriver(
        {Uri uri,
        Map<String, dynamic> desired,
        core.WebDriverSpec spec = core.WebDriverSpec.Auto}) =>
    core.createDriver((prefix) => SyncHttpRequestClient(prefix),
        uri: uri, desired: desired, spec: spec);