puppeteer/website/versioned_docs/version-10.1.0/puppeteer.browser.browsercontexts.md

18 lines
581 B
Markdown
Raw Normal View History

2021-08-10 10:09:48 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Browser](./puppeteer.browser.md) &gt; [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)\[\]