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

24 lines
355 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: BrowserContext.close
---
# BrowserContext.close() method
Closes the browser context. All the targets that belong to the browser context will be closed.
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class BrowserContext {
close(): Promise<void>;
}
```
**Returns:**
Promise&lt;void&gt;
## Remarks
Only incognito browser contexts can be closed.