Created
September 4, 2018 14:13
-
-
Save almond-bongbong/fb5cb43e8dec0b7a6967921e8e58d6d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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