Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606885025-practice
Commits
9beedb07
Commit
9beedb07
authored
Nov 21, 2019
by
Rani Lasma Uli
Browse files
switch webdriver
parent
ffb00fb2
Pipeline
#25768
failed with stages
in 24 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
functional_tests/base.py
View file @
9beedb07
...
...
@@ -22,13 +22,13 @@ class FunctionalTest(StaticLiveServerTestCase):
self
.
createBrowserInstance
()
def
createBrowserInstance
(
self
):
self
.
browser
=
webdriver
.
Firefox
()
#
try:
#
self.browser = webdriver.Chrome(options=self.options)
#
except WebDriverException:
#
# linux
#
self.browser = webdriver.Chrome('./chromedriver',
#
options=self.options)
#
self.browser = webdriver.Firefox()
try
:
self
.
browser
=
webdriver
.
Chrome
(
options
=
self
.
options
)
except
WebDriverException
:
# linux
self
.
browser
=
webdriver
.
Chrome
(
'./chromedriver'
,
options
=
self
.
options
)
self
.
browser
.
implicitly_wait
(
3
)
...
...
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