diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-12 17:52:22 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-12 17:52:22 +0300 |
commit | 0cd365937ed7b2fc986c6038dca8b96a1f2bdf4c (patch) | |
tree | 6d820cb6c7b349c60b22ceec4327b3034f55202e | |
parent | b0c94a3d312ae9c417c2f0bcb47392306b6b972d (diff) | |
download | bsu-fantom-0cd365937ed7b2fc986c6038dca8b96a1f2bdf4c.tar.gz |
feat: add CONFERENCE_DURATION
-rw-r--r-- | src/attendConference.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attendConference.js b/src/attendConference.js index c2a3de6..54d6479 100644 --- a/src/attendConference.js +++ b/src/attendConference.js @@ -1,5 +1,7 @@ const { clickElementByXPath } = require('./utils.js'); +const CONFERENCE_DURATION = 1000 * 60 * 80; // 80 minutes + const attendConference = async (page, onJoin) => { // Join as "Listen only" @@ -8,7 +10,7 @@ const attendConference = async (page, onJoin) => { console.log('Joined the conference'); // Wait 5 seconds - await page.waitForTimeout(5000); + await page.waitForTimeout(CONFERENCE_DURATION); console.log('Time to leave!') // Leave audio and close the tab |