puppeteer/docs/api/puppeteer.browser.defaultbrowsercontext.md

24 lines
424 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Browser.defaultBrowserContext
---
# Browser.defaultBrowserContext() method
2023-09-18 09:05:23 +00:00
Gets the default [browser context](./puppeteer.browsercontext.md).
2022-07-05 13:41:43 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class Browser {
2023-09-18 09:05:23 +00:00
abstract defaultBrowserContext(): BrowserContext;
2022-07-05 13:41:43 +00:00
}
```
**Returns:**
[BrowserContext](./puppeteer.browsercontext.md)
2023-09-18 09:05:23 +00:00
## Remarks
The default [browser context](./puppeteer.browsercontext.md) cannot be closed.