Back to Puppeteer

Frame.content() method

website/versioned_docs/version-24.40.0/api/puppeteer.frame.content.md

19.2.2202 B
Original Source

Frame.content() method

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

Signature

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

Returns:

Promise<string>