disposeBrowserContext method

Future<void> disposeBrowserContext(
  1. BrowserContextID browserContextId
)

Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.

Implementation

Future<void> disposeBrowserContext(
  browser.BrowserContextID browserContextId,
) async {
  await _client.send('Target.disposeBrowserContext', {
    'browserContextId': browserContextId,
  });
}