mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
9 lines
305 B
JavaScript
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();
|
|
})();
|