Skip to content

Commit

Permalink
[py] do not set browser binary in selenium manager if it is an empty …
Browse files Browse the repository at this point in the history
…string (#12738)
  • Loading branch information
titusfortner committed Oct 16, 2023
1 parent 8ed8aa2 commit fe4bc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/selenium_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def driver_location(self, options: BaseOptions) -> str:
driver_path = output["driver_path"]
logger.debug("Using driver at: %s", driver_path)

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

Expand Down

0 comments on commit fe4bc76

Please sign in to comment.