Skip to content

Commit dbee90b

Browse files
titusfortneraguspe
authored andcommitted
[py] do not set browser binary in selenium manager if it is an empty string (SeleniumHQ#12738)
1 parent 7bd06fc commit dbee90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/selenium_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def driver_location(self, options: BaseOptions) -> str:
101101
driver_path = output["driver_path"]
102102
logger.debug("Using driver at: %s", driver_path)
103103

104-
if hasattr(options.__class__, "binary_location"):
104+
if hasattr(options.__class__, "binary_location") and browser_path:
105105
options.binary_location = browser_path
106106
options.browser_version = None # if we have the binary location we no longer need the version
107107

0 commit comments

Comments
 (0)