mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
22 lines
719 B
Markdown
22 lines
719 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Browser](./puppeteer.browser.md) > [pages](./puppeteer.browser.pages.md)
|
|
|
|
## Browser.pages() method
|
|
|
|
An array of all open pages inside the Browser.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
pages(): Promise<Page[]>;
|
|
```
|
|
<b>Returns:</b>
|
|
|
|
Promise<[Page](./puppeteer.page.md)<!-- -->\[\]>
|
|
|
|
## Remarks
|
|
|
|
In case of multiple browser contexts, returns an array with all the pages in all browser contexts. Non-visible pages, such as `"background_page"`<!-- -->, will not be listed here. You can find them using [Target.page()](./puppeteer.target.page.md)<!-- -->.
|
|
|