Fakultas Ilmu Komputer UI

Commit fbfd1cc1 authored by Rani Lasma Uli's avatar Rani Lasma Uli
Browse files

change webdriver

parent 9beedb07
Pipeline #25800 failed with stages
in 7 minutes and 48 seconds
......@@ -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:
......
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment