Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Created August 20, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristansokol/d3c9cf976612f7c625670b4095d97585 to your computer and use it in GitHub Desktop.
Save tristansokol/d3c9cf976612f7c625670b4095d97585 to your computer and use it in GitHub Desktop.
(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();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment