mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
a63b8305ac
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
26 lines
663 B
Markdown
26 lines
663 B
Markdown
---
|
|
sidebar_label: Browser.pages
|
|
---
|
|
|
|
# Browser.pages() method
|
|
|
|
Gets a list of all open [pages](./puppeteer.page.md) inside this [Browser](./puppeteer.browser.md).
|
|
|
|
If there ar multiple [browser contexts](./puppeteer.browsercontext.md), this returns all [pages](./puppeteer.page.md) in all [browser contexts](./puppeteer.browsercontext.md).
|
|
|
|
#### Signature:
|
|
|
|
```typescript
|
|
class Browser {
|
|
pages(): Promise<Page[]>;
|
|
}
|
|
```
|
|
|
|
**Returns:**
|
|
|
|
Promise<[Page](./puppeteer.page.md)\[\]>
|
|
|
|
## Remarks
|
|
|
|
Non-visible [pages](./puppeteer.page.md), such as `"background_page"`, will not be listed here. You can find them using [Target.page()](./puppeteer.target.page.md).
|