18 lines
581 B
Markdown
18 lines
581 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Browser](./puppeteer.browser.md) > [browserContexts](./puppeteer.browser.browsercontexts.md)
|
||
|
|
||
|
## Browser.browserContexts() method
|
||
|
|
||
|
Returns an array of all open browser contexts. In a newly created browser, this will return a single instance of [BrowserContext](./puppeteer.browsercontext.md).
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
browserContexts(): BrowserContext[];
|
||
|
```
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
[BrowserContext](./puppeteer.browsercontext.md)\[\]
|
||
|
|