puppeteer/docs/api/puppeteer.browser.newpage.md

20 lines
339 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Browser.newPage
---
# Browser.newPage() method
2023-09-18 09:05:23 +00:00
Creates a new [page](./puppeteer.page.md) in the [default browser context](./puppeteer.browser.defaultbrowsercontext.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 newPage(): Promise<Page>;
2022-07-05 13:41:43 +00:00
}
```
**Returns:**
Promise&lt;[Page](./puppeteer.page.md)&gt;