Skip to content

Instantly share code, notes, and snippets.

@VithuJey
Last active October 21, 2021 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VithuJey/1a586c65c854cf933df3ac78595d1af2 to your computer and use it in GitHub Desktop.
Save VithuJey/1a586c65c854cf933df3ac78595d1af2 to your computer and use it in GitHub Desktop.
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