2020-05-07 10:54:55 +00:00
|
|
|
(async () => {
|
2019-02-25 20:40:17 +00:00
|
|
|
const [, , puppeteerRoot, options] = process.argv;
|
2018-02-23 03:06:13 +00:00
|
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
|
|
const page = await browser.newPage();
|
2022-06-15 10:09:22 +00:00
|
|
|
await page.evaluate(() => {
|
|
|
|
return console.error('message from dumpio');
|
|
|
|
});
|
2018-02-23 03:06:13 +00:00
|
|
|
await page.close();
|
|
|
|
await browser.close();
|
|
|
|
})();
|