Answers for "puppeteer quick start"

1

puppeteer quick start

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 January-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language