I am considering using pupeteer for a project I am working on, but I can't seem to figure out if I can take the screenshot taken with puppeteer and display it as an image on an html page automatically. I read through the docs but didn't see anything related to this.
Thanks in advance!
You can get the image as a
base64
string using theencoding
option:Then you can load that in an HTML as a base64 image: