Skip to content

Commit

Permalink
webui tests: only run one instance of webdriver
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 24, 2020
1 parent 819b4c4 commit a6a1ae8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webui/tests/selenium/webui-selenium-test.py
Expand Up @@ -217,7 +217,6 @@ def setUp(self):
else:
if self.browser == "chrome":
self.chromedriverpath = self.getChromedriverpath()
self.driver = webdriver.Chrome(self.chromedriverpath)
# chrome webdriver option: disable experimental feature
opt = webdriver.ChromeOptions()
opt.add_experimental_option("w3c", False)
Expand All @@ -231,7 +230,7 @@ def setUp(self):
# test in headless mode?
if self.chromeheadless:
opt.add_argument("--headless")
self.driver = webdriver.Chrome(chrome_options=opt)
self.driver = webdriver.Chrome(self.chromedriverpath, chrome_options=opt)
elif self.browser == "firefox":
d = DesiredCapabilities.FIREFOX
d["loggingPrefs"] = {"browser": "ALL"}
Expand Down

0 comments on commit a6a1ae8

Please sign in to comment.