Skip to main content
Version: 21.5.2

Page.content() method

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

Signature:

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

Returns:

Promise<string>