puppeteer/test/fixtures/dumpio.js

8 lines
236 B
JavaScript
Raw Normal View History

(async() => {
const [, , puppeteerRoot, options] = process.argv;
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
const page = await browser.newPage();
await page.close();
await browser.close();
})();