Skip to content

Instantly share code, notes, and snippets.

@franciskim
Last active July 22, 2018 22:31
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 franciskim/d0cc20203ff7a1f7487cda931fa9c2da to your computer and use it in GitHub Desktop.
Save franciskim/d0cc20203ff7a1f7487cda931fa9c2da to your computer and use it in GitHub Desktop.
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
headless: false
});
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