Skip to content

Commit

Permalink
fix(exception): catch
Browse files Browse the repository at this point in the history
as done in a previous commit, for another element: handle
ElementClickInterceptedException as NoSuchElementException

#124 (comment)
  • Loading branch information
faust64 committed Jun 13, 2021
1 parent 10cc6bf commit ee455b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ def bbb_browser():
element.click()
except NoSuchElementException:
logging.info("could not find users and messages toggle")
except ElementClickInterceptedException:
logging.info("could not find users and messages toggle")

try:
browser.execute_script("document.querySelector('[aria-label=\"Users and messages toggle\"]').style.display='none';")
Expand Down

0 comments on commit ee455b4

Please sign in to comment.