createTarget method

Future<String> createTarget(
  1. String url
)

Creates a new page.

url The initial URL the page will be navigated to.

Returns the targetId of the page opened.

Implementation

Future<String> createTarget(String url) async {
  WipResponse response =
      await sendCommand('Target.createTarget', params: {'url': url});
  return response.result!['targetId'] as String;
}