From 80ab5329252d31abc87e63f8fd5004a03ada00f0 Mon Sep 17 00:00:00 2001 From: Jonas Zohren <jonas.zohren@tu-dortmund.de> Date: Mon, 19 Oct 2020 16:32:58 +0200 Subject: [PATCH] click away modals before getting room info --- server/room_attacher.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/room_attacher.js b/server/room_attacher.js index 4881159..f66f962 100644 --- a/server/room_attacher.js +++ b/server/room_attacher.js @@ -101,6 +101,12 @@ async function handleTakeScreenshot(pathToSaveTo) { } async function handleGetRoomInfo() { + + // Try to click annoying modals away + try { + await roomPage.click('button[class*="dismiss--"]'); + } catch (error) {} + try { const promises = [ bbb.getUserCount(roomPage), -- GitLab