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
fbfd1cc1
Commit
fbfd1cc1
authored
Nov 22, 2019
by
Rani Lasma Uli
Browse files
change webdriver
parent
9beedb07
Pipeline
#25800
failed with stages
in 7 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fbfd1cc1
...
...
@@ -44,8 +44,9 @@ FunctionalTest:
-
apt-get update -qq && apt-get install -y -qq unzip
-
apt-get install -y google-chrome-stable
-
apt-get install -y xvfb
-
wget https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_linux64.zip
-
unzip chromedriver_linux64.zip
-
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
-
tar -xvzf geckodriver*
-
chmod +x geckodriver
-
pip install -r requirements.txt
when
:
on_success
script
:
...
...
functional_tests/base.py
View file @
fbfd1cc1
...
...
@@ -22,13 +22,14 @@ class FunctionalTest(StaticLiveServerTestCase):
self
.
createBrowserInstance
()
def
createBrowserInstance
(
self
):
# self.browser = webdriver.Firefox()
try
:
self
.
browser
=
webdriver
.
Chrome
(
options
=
self
.
options
)
# self.browser = webdriver.Chrome(options=self.options)
self
.
browser
=
webdriver
.
Firefox
()
except
WebDriverException
:
# linux
self
.
browser
=
webdriver
.
Chrome
(
'./chromedriver'
,
options
=
self
.
options
)
# self.browser = webdriver.Chrome('./chromedriver',
# options=self.options)
self
.
browser
=
webdriver
.
Firefox
(
'./geckodriver'
)
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