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'); // Install puppeteer from https://www.npmjs.com/package/puppeteer | |
(async () => { | |
const browser = await puppeteer.launch({headless:false, // `true` if you want to run in headless mode and hidden | |
defaultViewport:{ | |
width: 1080, // adjust as required | |
height: 720 // adjust as required | |
}}); | |
const page = await browser.newPage(); | |
await page.goto('https://google.com'); |