Skip to content

Commit

Permalink
fix user list selector
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Dec 13, 2021
1 parent 58ef794 commit 747f0e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ def bbb_browser():
chat_send.click()

if args.chat:
browser.execute_script("document.querySelector('[aria-label=\"User list\"]').parentElement.style.display='none';")
try:
browser.execute_script("document.querySelector('[aria-label=\"User list\"]').parentElement.style.display='none';")
except JavaScriptException:
browser.execute_script("document.querySelector('[aria-label=\"Users list\"]').parentElement.style.display='none';")
else:
element = browser.find_elements_by_id('chat-toggle-button')[0]
if element.is_enabled():
Expand Down

0 comments on commit 747f0e1

Please sign in to comment.