Skip to content

Commit 08c604b

Browse files
feat: 🚸 Adicionada funcionalidade que fecha o browser automaticamente após a validação
Adicionei a função browser.close( ) e um timer de 2 segundos, então apos a validação ele aguarda 2 segundos e fecha o browser automaticamente.
1 parent 09c48be commit 08c604b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ const schema = require(`./schema/${config.schema_name}`);
104104
bowser(obj);
105105
};
106106
});
107+
await page.waitFor(20000);
108+
await browser.close();
107109
} else {
108110
let path = `Path : ${page.url()}\n`;
109111
//doc.text(path, 10, 10);

0 commit comments

Comments
 (0)