diff options
| -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  |