puppeteer/docs/api/puppeteer.browsercontext.close.md

426 B

sidebar_label
BrowserContext.close

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.