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