createDriver function
Future<AppiumWebDriver>
createDriver({
- Uri? uri,
- required Map<
String, dynamic> desired, - WebDriverSpec spec = WebDriverSpec.Auto,
Creates a new async WebDriver 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
last path component will be dropped.
Implementation
Future<AppiumWebDriver> createDriver(
{Uri? uri,
required Map<String, dynamic> desired,
WebDriverSpec spec = WebDriverSpec.Auto}) =>
core.createDriver((prefix) => AsyncIoRequestClient(prefix),
uri: uri, desired: desired, spec: spec);