clearCookies method

Future<void> clearCookies({
  1. BrowserContextID? browserContextId,
})

Clears cookies. browserContextId Browser context to use when called on the browser endpoint.

Implementation

Future<void> clearCookies({
  browser.BrowserContextID? browserContextId,
}) async {
  await _client.send('Storage.clearCookies', {
    if (browserContextId != null) 'browserContextId': browserContextId,
  });
}