puppeteer get screenshot endpoint code example Example: puppeteer take screenshot await page.screenshot({path: 'screenshot.png'});