Skip to content

Commit 9a9c253

Browse files
committed
Fix browser-version-detection on Windows
1 parent 668d646 commit 9a9c253

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

seleniumbase/core/detect_b_ver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def linux_browser_apps_to_cmd(*apps):
9797

9898

9999
def chrome_on_linux_path(prefer_chromium=False):
100-
if os_name() != "linux":
100+
if os_name() != OSType.LINUX:
101101
return ""
102102
if prefer_chromium:
103103
paths = ["/bin/chromium", "/bin/chromium-browser"]
@@ -127,7 +127,7 @@ def chrome_on_linux_path(prefer_chromium=False):
127127

128128

129129
def edge_on_linux_path():
130-
if os_name() != "linux":
130+
if os_name() != OSType.LINUX:
131131
return ""
132132
paths = os.environ["PATH"].split(os.pathsep)
133133
binaries = []
@@ -144,7 +144,7 @@ def edge_on_linux_path():
144144

145145

146146
def chrome_on_windows_path():
147-
if os_name() != "win32":
147+
if os_name() != OSType.WIN:
148148
return ""
149149
candidates = []
150150
for item in map(
@@ -172,7 +172,7 @@ def chrome_on_windows_path():
172172

173173

174174
def edge_on_windows_path():
175-
if os_name() != "win32":
175+
if os_name() != OSType.WIN:
176176
return ""
177177
candidates = []
178178
for item in map(

0 commit comments

Comments
 (0)