quit method

Future<void> quit({
  1. bool closeSession = true,
})

Quits the browser.

Implementation

Future<void> quit({bool closeSession = true}) async {
  try {
    if (closeSession) {
      await _client.send(_handler.core.buildDeleteSessionRequest(),
          _handler.core.parseDeleteSessionResponse);
    }
  } finally {
    _client.close();
  }
}