mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
ee1f4784c6
This lets us pass the fixtures test for browser shutdown.
9 lines
298 B
JavaScript
9 lines
298 B
JavaScript
(async() => {
|
|
const [, , playwrightRoot, options] = process.argv;
|
|
const browser = await require(playwrightRoot).launch(JSON.parse(options));
|
|
if (browser.chromium)
|
|
console.log(browser.chromium.wsEndpoint());
|
|
else if (browser.firefox)
|
|
console.log(browser.firefox.wsEndpoint());
|
|
})();
|