Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sergio Vergata
BigBlueButton LiveStreaming
Commits
2d6749dd
Unverified
Commit
2d6749dd
authored
Apr 11, 2021
by
mtsonline
Committed by
GitHub
Apr 11, 2021
Browse files
Merge pull request #123 from ichdasich/message_toogle
Message toogle
parents
775f2566
e474f57f
Changes
1
Hide whitespace changes
Inline
Side-by-side
stream.py
View file @
2d6749dd
...
...
@@ -7,6 +7,7 @@ from bigbluebutton_api_python import BigBlueButton, exception
from
bigbluebutton_api_python
import
util
as
bbbUtil
from
selenium
import
webdriver
from
selenium.webdriver.common.keys
import
Keys
from
selenium.common.exceptions
import
JavascriptException
from
selenium.common.exceptions
import
NoSuchElementException
from
selenium.webdriver.chrome.options
import
Options
from
selenium.webdriver.support.ui
import
WebDriverWait
...
...
@@ -167,13 +168,16 @@ def bbb_browser():
time
.
sleep
(
10
)
if
not
args
.
chat
:
try
:
element
=
browser
.
find_elements_by_css_selector
(
'button[aria-label="Users and messages toggle"]'
)[
0
]
element
=
browser
.
find_elements_by_css_selector
(
'button[aria-label
^
="Users and messages toggle"]'
)[
0
]
if
element
.
is_enabled
():
element
.
click
()
except
NoSuchElementException
:
logging
.
info
(
"could not find users and messages toggle"
)
browser
.
execute_script
(
"document.querySelector('[aria-label=
\"
Users and messages toggle
\"
]').style.display='none';"
)
try
:
browser
.
execute_script
(
"document.querySelector('[aria-label=
\"
Users and messages toggle
\"
]').style.display='none';"
)
except
JavascriptException
:
browser
.
execute_script
(
"document.querySelector('[aria-label=
\"
Users and messages toggle with new message notification
\"
]').style.display='none';"
)
browser
.
execute_script
(
"document.querySelector('[aria-label=
\"
Options
\"
]').style.display='none';"
)
browser
.
execute_script
(
"document.querySelector('[aria-label=
\"
Actions bar
\"
]').style.display='none';"
)
browser
.
execute_script
(
"document.getElementById('container').setAttribute('style','margin-bottom:30px');"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment