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

338 B

sidebar_label
BrowserContext.newPage

BrowserContext.newPage() method

Creates a new page in this browser context.

Signature:

class BrowserContext {
  abstract newPage(): Promise<Page>;
}

Returns:

Promise<Page>