Merge "Add an option to use Google Chrome for Selenium tests"

This commit is contained in:
Zuul 2022-07-05 15:46:12 +00:00 committed by Gerrit Code Review
commit 3db9b8d4ad

View File

@ -28,6 +28,9 @@ from selenium.webdriver.remote import webelement
if os.environ.get('SELENIUM_PHANTOMJS'):
from selenium.webdriver import PhantomJS as WebDriver
desired_capabilities = dc.DesiredCapabilities.PHANTOMJS
elif os.environ.get('SELENIUM_CHROME'):
from selenium.webdriver import Chrome as WebDriver
desired_capabilities = dc.DesiredCapabilities.CHROME
else:
from horizon.test.firefox_binary import WebDriver
desired_capabilities = dc.DesiredCapabilities.FIREFOX