puppeteer/docs/api/puppeteer.page.content.md

239 B

sidebar_label
Page.content

Page.content() method

The full HTML contents of the page, including the DOCTYPE.

Signature:

class Page {
  content(): Promise<string>;
}

Returns:

Promise<string>