summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-14 21:42:12 +0300
committereug-vs <eug-vs@keemail.me>2020-11-14 21:49:04 +0300
commit516ecee72938dd6def1d76fa028b805beb862ad5 (patch)
tree2a8a285afcf299e29c5d34155b9d13753af301b6
parent25633772f607a61cbb4a18f34c523d007dbc2c6b (diff)
downloadbsu-fantom-516ecee72938dd6def1d76fa028b805beb862ad5.tar.gz
feat: use incognito mode
-rw-r--r--src/handlers/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/handlers/index.js b/src/handlers/index.js
index 7101250..0f0ab67 100644
--- a/src/handlers/index.js
+++ b/src/handlers/index.js
@@ -30,6 +30,7 @@ const handleJobAsUser = async (job, browser, user) => {
));
await clickElementBySelector(page, 'input#join_button_input');
const conferencePage = await conferencePagePromise;
+ await page.close();
await attendConference(conferencePage, () => console.log(`Joined the conference at ${conferenceUrl}`));
@@ -47,7 +48,7 @@ const handleJob = async job => {
console.log('Participants: ', participants.map(participant => participant.username));
- const browser = await puppeteer.launch({ headless, args: ['--no-sandbox'] });
+ const browser = await puppeteer.launch({ headless, args: ['--no-sandbox', '--incognito'] });
try {
await Bluebird.map(participants, participant => handleJobAsUser(job, browser, participant));