createDriver function
Creates a new async WebDriver 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> createDriver(
{Uri? uri,
Map<String, dynamic>? desired,
WebDriverSpec spec = WebDriverSpec.Auto,
Map<String, String> webDriverHeaders = const {}}) =>
core.createDriver(
(prefix) => AsyncXhrRequestClient(prefix, headers: webDriverHeaders),
uri: uri,
desired: desired,
spec: spec);