Last active
October 21, 2021 15:09
-
-
Save VithuJey/1a586c65c854cf933df3ac78595d1af2 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 function getPic() { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('http://courseweb.sliit.lk'); | |
await page.screenshot({path: 'courseweb.png'}); | |
await browser.close(); | |
} | |
getPic(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment