2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [BrowserContext](./puppeteer.browsercontext.md) > [close](./puppeteer.browsercontext.close.md)
|
|
|
|
|
|
|
|
## BrowserContext.close() method
|
|
|
|
|
2020-06-23 05:21:01 +00:00
|
|
|
Closes the browser context. All the targets that belong to the browser context will be closed.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
close(): Promise<void>;
|
|
|
|
```
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
2020-06-23 05:21:01 +00:00
|
|
|
## Remarks
|
|
|
|
|
|
|
|
Only incognito browser contexts can be closed.
|
|
|
|
|