puppeteer/test/fixtures/closeme.js

6 lines
186 B
JavaScript
Raw Normal View History

(async() => {
const [, , puppeteerRoot, options] = process.argv;
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
console.log(browser.wsEndpoint());
})();