puppeteer/test/fixtures/closeme.js

11 lines
276 B
JavaScript
Raw Normal View History

/**
* @license
* Copyright 2024 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
2020-05-07 10:54:55 +00:00
(async () => {
const [, , puppeteerRoot, options] = process.argv;
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
console.log(browser.wsEndpoint());
})();