From 37e5871829beceb48faab5c9fb28364d7bd83dd1 Mon Sep 17 00:00:00 2001 From: Samuel MARTIN MORO Date: Thu, 20 May 2021 18:48:15 +0200 Subject: [PATCH 1/2] fix(124) --- stream.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 0ea136e..98a8d2b 100644 --- a/stream.py +++ b/stream.py @@ -7,6 +7,7 @@ from bigbluebutton_api_python import util as bbbUtil from selenium import webdriver from selenium.webdriver.common.keys import Keys +from selenium.common.exceptions import ElementClickInterceptedException from selenium.common.exceptions import JavascriptException from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.chrome.options import Options @@ -162,7 +163,10 @@ def bbb_browser(): if element.is_enabled(): element.click() except NoSuchElementException: - # ignore (chat might be disabled) + # ignore (chat might be disabled) + logging.info("could not find chat input or chat toggle") + except ElementClickInterceptedException: + # ignore (chat might be disabled) logging.info("could not find chat input or chat toggle") time.sleep(10) From b9806b1431866d5be1632e235356baa0d506b459 Mon Sep 17 00:00:00 2001 From: Martin Schrott Date: Wed, 26 May 2021 12:05:36 +0200 Subject: [PATCH 2/2] changed the element handling on login of the chat user --- chat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chat.py b/chat.py index 250916e..2b72911 100644 --- a/chat.py +++ b/chat.py @@ -83,8 +83,10 @@ def bbb_browser(): time.sleep(6) - element = EC.invisibility_of_element((By.CSS_SELECTOR, '.ReactModal__Overlay')) + # wait for message input: + element = EC.presence_of_element_located((By.ID, 'message-input')) WebDriverWait(browser, selenium_timeout).until(element) + browser.find_element_by_id('message-input').send_keys("Viewers of the live stream can now send messages to this meeting") browser.find_elements_by_css_selector('[aria-label="Send message"]')[0].click()