mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
9 lines
322 B
JavaScript
9 lines
322 B
JavaScript
(async() => {
|
|
const [, , playwrightRoot, options] = process.argv;
|
|
const browser = await require(playwrightRoot).launch(JSON.parse(options));
|
|
const page = await browser.defaultContext().newPage();
|
|
await page.evaluate(() => console.error('message from dumpio'));
|
|
await page.close();
|
|
await browser.close();
|
|
})();
|