FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
testcontainers-python/tests/test_selenium.py at master · briansu2004/testcontainers-python · GitHub
briansu2004
/
testcontainers-python
Public
forked from
testcontainers/testcontainers-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
testcontainers-python
/
tests
/
test_selenium.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 457 Bytes
Breadcrumbs
testcontainers-python
/
tests
/
test_selenium.py
Copy path
File metadata and controls
9 lines (7 loc) · 457 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
def
test_selenium_custom_image
():
from
testcontainers
.
selenium
import
BrowserWebDriverContainer
from
selenium
.
webdriver
import
DesiredCapabilities
image
=
"selenium/standalone-chrome:latest"
chrome
=
BrowserWebDriverContainer
(
DesiredCapabilities
.
CHROME
,
image
=
image
)
assert
"image"
in
dir
(
chrome
),
"`image` attribute was not instantialized."
assert
chrome
.
image
==
image
,
"`image` attribute was not set to the user provided value"
Back
|
FazBrowse Home
|
New Git URL