puppeteer/docs/api/puppeteer.browsercontext.newpage.md

20 lines
338 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: BrowserContext.newPage
---
# BrowserContext.newPage() method
Creates a new [page](./puppeteer.page.md) in this [browser context](./puppeteer.browsercontext.md).
2022-07-05 13:41:43 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class BrowserContext {
abstract newPage(): Promise<Page>;
2022-07-05 13:41:43 +00:00
}
```
**Returns:**
Promise&lt;[Page](./puppeteer.page.md)&gt;