Skip to content

Instantly share code, notes, and snippets.

@almond-bongbong
Created September 4, 2018 14:13
Show Gist options
  • Save almond-bongbong/fb5cb43e8dec0b7a6967921e8e58d6d6 to your computer and use it in GitHub Desktop.
Save almond-bongbong/fb5cb43e8dec0b7a6967921e8e58d6d6 to your computer and use it in GitHub Desktop.
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
headless: false,
slowMo: 250 // slow down by 250ms
});
const page = await browser.newPage();
await page.setViewport({width: 1920, height: 1024});
await page.goto('https://naver.com');
await page.screenshot({path: './screenshot/example.png'});
await browser.close();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment