salix/e2e/helpers/puppeteer.js

16 lines
365 B
JavaScript
Raw Normal View History

2019-11-25 08:13:20 +00:00
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();
})();