createDriver function Null safety
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.
Implementation
core.WebDriver createDriver(
{Uri? uri,
Map<String, dynamic>? desired,
core.WebDriverSpec spec = core.WebDriverSpec.Auto,
Map<String, String> webDriverHeaders = const {}}) =>
core.createDriver(
(prefix) => SyncHttpRequestClient(prefix, headers: webDriverHeaders),
uri: uri,
desired: desired,
spec: spec);