Last active
May 18, 2021 12:23
-
-
Save ankitsadariya/b1d7b3e445e972de0e9cb50d076fa431 to your computer and use it in GitHub Desktop.
Sample puppeteer code
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(); | |
const page = await browser.newPage(); | |
await page.goto(‘http://www.softwaretestingtipsandtricks.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