attachToBrowserTarget method

Future<SessionID> attachToBrowserTarget()

Attaches to the browser target, only uses flat sessionId mode. Returns: Id assigned to the session.

Implementation

Future<SessionID> attachToBrowserTarget() async {
  var result = await _client.send('Target.attachToBrowserTarget');
  return SessionID.fromJson(result['sessionId'] as String);
}