playwright/test/fixtures/closeme.js
Andrey Lushnikov ee1f4784c6
feat(firefox): implement browser.firefox.wsEndpoint() (#233)
This lets us pass the fixtures test for browser shutdown.
2019-12-12 18:40:48 -08:00

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());
})();