mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: Allows configuration of Selenium Webdriver binary (#33103)
This commit is contained in:
committed by
GitHub
parent
3c1fc0b722
commit
e1f5c49df7
@@ -275,6 +275,10 @@ class WebDriverSelenium(WebDriverProxy):
|
||||
# Add additional configured webdriver options
|
||||
webdriver_conf = dict(current_app.config["WEBDRIVER_CONFIGURATION"])
|
||||
|
||||
# Set the binary location if provided
|
||||
# We need to pop it from the dict due to selenium_version < 4.10.0
|
||||
options.binary_location = webdriver_conf.pop("binary_location", "")
|
||||
|
||||
if version.parse(selenium_version) < version.parse("4.10.0"):
|
||||
kwargs |= webdriver_conf
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user