Skip to content

Instantly share code, notes, and snippets.

@twfahey1
Created January 9, 2020 02:04
Show Gist options
  • Save twfahey1/ad6b886aa190a6523f754c61dd0d2311 to your computer and use it in GitHub Desktop.
Save twfahey1/ad6b886aa190a6523f754c61dd0d2311 to your computer and use it in GitHub Desktop.
Dump contents of page in puppeteer - node JS
let bodyHTML = await page.evaluate(() => document.body.innerHTML);
console.log(bodyHTML);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment