mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
77a4ea505e
Drive-By: give Puppeteer-Firefox its own copy of DeviceDescriptors.
8 lines
236 B
JavaScript
8 lines
236 B
JavaScript
(async() => {
|
|
const [, , puppeteerRoot, options] = process.argv;
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
const page = await browser.newPage();
|
|
await page.close();
|
|
await browser.close();
|
|
})();
|