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