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