Answers for "puppeteer save file"

0

puppeteer save file

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({ path: 'example.png' });

  await browser.close();
})();
Posted by: Guest on August-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language