Fakultas Ilmu Komputer UI

Commit 9beedb07 authored by Rani Lasma Uli's avatar Rani Lasma Uli
Browse files

switch webdriver

parent ffb00fb2
Pipeline #25768 failed with stages
in 24 minutes and 4 seconds
......@@ -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)
......
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