Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigBlueButton LiveStreaming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sergio Vergata
BigBlueButton LiveStreaming
Commits
6d15afec
Commit
6d15afec
authored
4 years ago
by
Thibault François
Browse files
Options
Downloads
Patches
Plain Diff
[lint] typo: selelnium > selenium
parent
46c5cdd5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chat.py
+4
-4
4 additions, 4 deletions
chat.py
stream.py
+4
-4
4 additions, 4 deletions
stream.py
with
8 additions
and
8 deletions
chat.py
+
4
−
4
View file @
6d15afec
...
@@ -11,7 +11,7 @@ from selenium.webdriver.support import expected_conditions as EC
...
@@ -11,7 +11,7 @@ from selenium.webdriver.support import expected_conditions as EC
from
selenium.webdriver.common.by
import
By
from
selenium.webdriver.common.by
import
By
browser
=
None
browser
=
None
sele
l
nium_timeout
=
30
selenium_timeout
=
30
connect_timeout
=
5
connect_timeout
=
5
logging
.
basicConfig
(
level
=
os
.
environ
.
get
(
"
LOGLEVEL
"
,
"
INFO
"
))
logging
.
basicConfig
(
level
=
os
.
environ
.
get
(
"
LOGLEVEL
"
,
"
INFO
"
))
...
@@ -67,11 +67,11 @@ def bbb_browser():
...
@@ -67,11 +67,11 @@ def bbb_browser():
browser
.
get
(
join_url
)
browser
.
get
(
join_url
)
element
=
EC
.
presence_of_element_located
((
By
.
XPATH
,
'
//span[contains(@class,
"
success
"
)]
'
))
element
=
EC
.
presence_of_element_located
((
By
.
XPATH
,
'
//span[contains(@class,
"
success
"
)]
'
))
WebDriverWait
(
browser
,
sele
l
nium_timeout
).
until
(
element
)
WebDriverWait
(
browser
,
selenium_timeout
).
until
(
element
)
browser
.
find_elements_by_xpath
(
'
//span[contains(@class,
"
success
"
)]
'
)[
0
].
click
()
browser
.
find_elements_by_xpath
(
'
//span[contains(@class,
"
success
"
)]
'
)[
0
].
click
()
element
=
EC
.
invisibility_of_element
((
By
.
CSS_SELECTOR
,
'
.ReactModal__Overlay
'
))
element
=
EC
.
invisibility_of_element
((
By
.
CSS_SELECTOR
,
'
.ReactModal__Overlay
'
))
WebDriverWait
(
browser
,
sele
l
nium_timeout
).
until
(
element
)
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_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
()
browser
.
find_elements_by_css_selector
(
'
[aria-label=
"
Send message
"
]
'
)[
0
].
click
()
...
@@ -122,4 +122,4 @@ while bbb.is_meeting_running(args.id).is_meeting_running() != True:
...
@@ -122,4 +122,4 @@ while bbb.is_meeting_running(args.id).is_meeting_running() != True:
set_up
()
set_up
()
bbb_browser
()
bbb_browser
()
chat
()
chat
()
browser
.
quit
()
browser
.
quit
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
stream.py
+
4
−
4
View file @
6d15afec
...
@@ -17,7 +17,7 @@ from datetime import datetime
...
@@ -17,7 +17,7 @@ from datetime import datetime
downloadProcess
=
None
downloadProcess
=
None
browser
=
None
browser
=
None
sele
l
nium_timeout
=
30
selenium_timeout
=
30
connect_timeout
=
5
connect_timeout
=
5
logging
.
basicConfig
(
level
=
os
.
environ
.
get
(
"
LOGLEVEL
"
,
"
INFO
"
))
logging
.
basicConfig
(
level
=
os
.
environ
.
get
(
"
LOGLEVEL
"
,
"
INFO
"
))
...
@@ -52,7 +52,7 @@ def set_up():
...
@@ -52,7 +52,7 @@ def set_up():
options
.
add_argument
(
'
--kiosk
'
)
options
.
add_argument
(
'
--kiosk
'
)
options
.
add_argument
(
'
--window-size=1920,1080
'
)
options
.
add_argument
(
'
--window-size=1920,1080
'
)
options
.
add_argument
(
'
--window-position=0,0
'
)
options
.
add_argument
(
'
--window-position=0,0
'
)
options
.
add_experimental_option
(
"
excludeSwitches
"
,
[
'
enable-automation
'
])
;
options
.
add_experimental_option
(
"
excludeSwitches
"
,
[
'
enable-automation
'
])
options
.
add_experimental_option
(
'
prefs
'
,
{
'
intl.accept_languages
'
:
'
{locale}
'
.
format
(
locale
=
'
en_US.UTF-8
'
)})
options
.
add_experimental_option
(
'
prefs
'
,
{
'
intl.accept_languages
'
:
'
{locale}
'
.
format
(
locale
=
'
en_US.UTF-8
'
)})
options
.
add_argument
(
'
--shm-size=1gb
'
)
options
.
add_argument
(
'
--shm-size=1gb
'
)
options
.
add_argument
(
'
--disable-dev-shm-usage
'
)
options
.
add_argument
(
'
--disable-dev-shm-usage
'
)
...
@@ -77,11 +77,11 @@ def bbb_browser():
...
@@ -77,11 +77,11 @@ def bbb_browser():
browser
.
get
(
join_url
)
browser
.
get
(
join_url
)
element
=
EC
.
presence_of_element_located
((
By
.
XPATH
,
'
//span[contains(@class,
"
success
"
)]
'
))
element
=
EC
.
presence_of_element_located
((
By
.
XPATH
,
'
//span[contains(@class,
"
success
"
)]
'
))
WebDriverWait
(
browser
,
sele
l
nium_timeout
).
until
(
element
)
WebDriverWait
(
browser
,
selenium_timeout
).
until
(
element
)
browser
.
find_elements_by_xpath
(
'
//span[contains(@class,
"
success
"
)]
'
)[
0
].
click
()
browser
.
find_elements_by_xpath
(
'
//span[contains(@class,
"
success
"
)]
'
)[
0
].
click
()
element
=
EC
.
invisibility_of_element
((
By
.
CSS_SELECTOR
,
'
.ReactModal__Overlay
'
))
element
=
EC
.
invisibility_of_element
((
By
.
CSS_SELECTOR
,
'
.ReactModal__Overlay
'
))
WebDriverWait
(
browser
,
sele
l
nium_timeout
).
until
(
element
)
WebDriverWait
(
browser
,
selenium_timeout
).
until
(
element
)
try
:
try
:
element
=
browser
.
find_element_by_id
(
'
message-input
'
)
element
=
browser
.
find_element_by_id
(
'
message-input
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment