Sitemap
1 min readJun 25, 2019

You should be able to use the setContent method on the page instance. Something like this:

const html = '<html>…</html>'
const browser = await puppeteer.launch()
const page = await browser.newPage()
page.setContent(html)

Responses (1)