mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
9 lines
304 B
JavaScript
9 lines
304 B
JavaScript
(async () => {
|
|
const [, , puppeteerRoot, options] = process.argv;
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
const page = await browser.newPage();
|
|
await page.evaluate(() => console.error('message from dumpio'));
|
|
await page.close();
|
|
await browser.close();
|
|
})();
|