Opening local html file using puppeteer
问题 Is it possible to open local html file with headless chrome using puppeteer (without web server)? I could only gate it to work against local server. I could see setContent() api and goto() api and page.goto: did not work with local file or file:// too. page.setContent: is for html string 回答1: I just did a test locally (you can see I did this on windows) and puppeteer happily opened my local html file using page.goto and a full file url, and saved it as a pdf: 'use strict'; const puppeteer =