Last active
October 27, 2018 02:54
-
-
Save klogic/b1d9d28904d1d6998d2c5d0d55ef609c to your computer and use it in GitHub Desktop.
This file contains hidden or 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}); // headless false will open chrome. | |
const page = await browser.newPage(); | |
await page.goto('https://www.google.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