Skip to content

Commit

Permalink
Merge pull request #28 from DP6/BrowserAutomaticClose
Browse files Browse the repository at this point in the history
Browser automatic close
  • Loading branch information
vandersonmaroni authored Jun 22, 2021
2 parents b12a60f + 3227f98 commit 70dc7f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 70dc7f6

Please sign in to comment.