Skip to content

Commit

Permalink
Fix browser-version-detection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Mar 15, 2024
1 parent 668d646 commit 9a9c253
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions seleniumbase/core/detect_b_ver.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def linux_browser_apps_to_cmd(*apps):


def chrome_on_linux_path(prefer_chromium=False):
if os_name() != "linux":
if os_name() != OSType.LINUX:
return ""
if prefer_chromium:
paths = ["/bin/chromium", "/bin/chromium-browser"]
Expand Down Expand Up @@ -127,7 +127,7 @@ def chrome_on_linux_path(prefer_chromium=False):


def edge_on_linux_path():
if os_name() != "linux":
if os_name() != OSType.LINUX:
return ""
paths = os.environ["PATH"].split(os.pathsep)
binaries = []
Expand All @@ -144,7 +144,7 @@ def edge_on_linux_path():


def chrome_on_windows_path():
if os_name() != "win32":
if os_name() != OSType.WIN:
return ""
candidates = []
for item in map(
Expand Down Expand Up @@ -172,7 +172,7 @@ def chrome_on_windows_path():


def edge_on_windows_path():
if os_name() != "win32":
if os_name() != OSType.WIN:
return ""
candidates = []
for item in map(
Expand Down

0 comments on commit 9a9c253

Please sign in to comment.