BrowserContext.close() method

Closes this browser context and all associated pages.

Signature

class BrowserContext {
  abstract close(): Promise<void>;
}

Returns:

Promise<void>

Remarks

The default browser context cannot be closed.