playwright/test/fixtures/dumpio.js

9 lines
322 B
JavaScript
Raw Normal View History

2019-11-19 05:18:28 +03:00
(async() => {
const [, , playwrightRoot, options] = process.argv;
const browser = await require(playwrightRoot).launch(JSON.parse(options));
const page = await browser.defaultContext().newPage();
2019-11-19 05:18:28 +03:00
await page.evaluate(() => console.error('message from dumpio'));
await page.close();
await browser.close();
})();