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

24 lines
426 B
Markdown
Raw Permalink Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: BrowserContext.close
---
# BrowserContext.close() method
Closes this [browser context](./puppeteer.browsercontext.md) and all associated [pages](./puppeteer.page.md).
2022-07-05 13:41:43 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class BrowserContext {
abstract close(): Promise<void>;
2022-07-05 13:41:43 +00:00
}
```
**Returns:**
Promise&lt;void&gt;
## Remarks
The [default browser context](./puppeteer.browser.defaultbrowsercontext.md) cannot be closed.