playwright/test/fixtures/dumpio.js
2019-11-19 10:58:15 -08:00

9 lines
305 B
JavaScript

(async() => {
const [, , playwrightRoot, options] = process.argv;
const browser = await require(playwrightRoot).launch(JSON.parse(options));
const page = await browser.newPage();
await page.evaluate(() => console.error('message from dumpio'));
await page.close();
await browser.close();
})();