showing results for - "puppeteer full display"
Erik
06 Jan 2017
1const puppeteer = require('puppeteer');
2
3(async () => {
4  const browser = await puppeteer.launch({
5    args:[
6       '--start-maximized' // you can also use '--start-fullscreen'
7    ]
8    });
9
10  const page = await browser.newPage();
11  await page.setViewport({ width: 1366, height: 768});
12  await page.goto('https://example.com', {waitUntil: 'networkidle2'});
13  await page.screenshot({path: 'example.png'});
14
15  browser.close();
16})();