mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
10 lines
452 B
JavaScript
10 lines
452 B
JavaScript
(async() => {
|
|
const [, , playwrightRoot, product, options] = process.argv;
|
|
const browserApp = await require(playwrightRoot)[product.toLowerCase()].launchBrowserApp(JSON.parse(options));
|
|
browserApp.on('close', (exitCode, signal) => {
|
|
console.log(`browserClose:${exitCode}:${signal}:browserClose`);
|
|
});
|
|
console.log(`browserPid:${browserApp.process().pid}:browserPid`);
|
|
console.log(`browserWS:${browserApp.wsEndpoint()}:browserWS`);
|
|
})();
|