diff --git a/index.js b/index.js index 9862f0e..6e68f42 100644 --- a/index.js +++ b/index.js @@ -103,6 +103,10 @@ const schema = require(`./schema/${config.schema_name}`); bowser(obj); }; }); + if (config.browserClose) { + config.time ? await page.waitFor(config.time) : await page.waitFor(0); + await browser.close(); + } } else { let path = `Path : ${page.url()}\n`; //doc.text(path, 10, 10);