16 lines
365 B
JavaScript
16 lines
365 B
JavaScript
|
|
const puppeteer = require('puppeteer');
|
|
|
|
(async() => {
|
|
const browser = await puppeteer.launch({
|
|
headless: false,
|
|
slowMo: 0, // slow down by ms
|
|
// devtools: true,
|
|
});
|
|
const page = await browser.newPage();
|
|
await page.goto('https://wowhead.com');
|
|
await page.screenshot({path: 'example.png'});
|
|
|
|
await browser.close();
|
|
})();
|