Back to Puppeteer

BrowserContext.newPage() method

docs/api/puppeteer.browsercontext.newpage.md

19.2.2571 B
Original Source

BrowserContext.newPage() method

Creates a new page in this browser context.

Signature

typescript
class BrowserContext {
  abstract newPage(options?: CreatePageOptions): Promise<Page>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

CreatePageOptions

</td><td>

(Optional)

</td></tr> </tbody></table>

Returns:

Promise<Page>