Do you know if it is possible to render a page without serving it from a web server? For example, I have the html of one page of my domain generated by a test. I would like to use puppeteer to render it. But I don't want to setup a http server for this. I would like to give a string with the html + a url to page.goto and let it render the page like it comes from the real server.
I guess I can cheat by intercepting the request and respond with the html I already have. But I wonder if there is already something existing.
Initial assumption when reading the thread was that navigating to a data URI would be handled like entry of a data URI into the omnibox and still be allowed.
A small test case confirms that assumption - it works.
I guess I can cheat by intercepting the request and respond with the html I already have. But I wonder if there is already something existing.