Skip to content

Instantly share code, notes, and snippets.

@bmorelli25
Created October 9, 2017 18:05
Show Gist options
  • Save bmorelli25/bd4e4b019523c7fbf79b4bee1bc65ebe to your computer and use it in GitHub Desktop.
Save bmorelli25/bd4e4b019523c7fbf79b4bee1bc65ebe to your computer and use it in GitHub Desktop.
Puppeteer Final Test
const puppeteer = require('puppeteer');
async function getPic() {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('https://google.com');
await page.setViewport({width: 1000, height: 500})
await page.screenshot({path: 'google.png'});
await browser.close();
}
getPic();
@infosample
Copy link

Missing semicolon on line 7. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment