Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…eStreaming into feat-115
  • Loading branch information
faust64 committed May 26, 2021
2 parents 94e4540 + d7c4a21 commit 4469afb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ 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)

element = browser.find_element_by_id('message-input')
Expand Down
6 changes: 5 additions & 1 deletion stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -163,7 +164,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)
Expand Down

0 comments on commit 4469afb

Please sign in to comment.