Skip to content

Commit

Permalink
Fix issue that occurs if a driver path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Aug 13, 2023
1 parent 3d22534 commit d4355ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions seleniumbase/core/browser_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_uc_driver_version():
if os.path.exists(LOCAL_UC_DRIVER):
try:
output = subprocess.check_output(
"%s --version" % LOCAL_UC_DRIVER, shell=True
'"%s" --version' % LOCAL_UC_DRIVER, shell=True
)
if IS_WINDOWS:
output = output.decode("latin1")
Expand Down Expand Up @@ -2276,7 +2276,7 @@ def get_local_driver(
if os.path.exists(LOCAL_EDGEDRIVER):
try:
output = subprocess.check_output(
"%s --version" % LOCAL_EDGEDRIVER, shell=True
'"%s" --version' % LOCAL_EDGEDRIVER, shell=True
)
if IS_WINDOWS:
output = output.decode("latin1")
Expand Down Expand Up @@ -2912,7 +2912,7 @@ def get_local_driver(
if os.path.exists(LOCAL_CHROMEDRIVER):
try:
output = subprocess.check_output(
"%s --version" % LOCAL_CHROMEDRIVER, shell=True
'"%s" --version' % LOCAL_CHROMEDRIVER, shell=True
)
if IS_WINDOWS:
output = output.decode("latin1")
Expand All @@ -2926,7 +2926,7 @@ def get_local_driver(
elif path_chromedriver:
try:
output = subprocess.check_output(
"%s --version" % path_chromedriver, shell=True
'"%s" --version' % path_chromedriver, shell=True
)
if IS_WINDOWS:
output = output.decode("latin1")
Expand Down

0 comments on commit d4355ed

Please sign in to comment.