Back to Puppeteer

Browser.newPage() method

docs/api/puppeteer.browser.newpage.md

19.2.2579 B
Original Source

Browser.newPage() method

Creates a new page in the default browser context.

Signature

typescript
class Browser {
  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>