Skip to content

Commit a8026c1

Browse files
committed
[py]: bugfix _get_firefox_start_cmd referencing invalid os._name
1 parent 49efb1c commit a8026c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/firefox/firefox_binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _get_firefox_start_cmd(self):
168168
start_cmd = os.path.expanduser("~") + start_cmd
169169
elif self.platform == "windows": # same
170170
start_cmd = self._find_exe_in_registry() or self._default_windows_location()
171-
elif self.platform == "java" and os._name == "nt":
171+
elif self.platform == "java" and os.name == "nt":
172172
start_cmd = self._default_windows_location()
173173
else:
174174
for ffname in ["firefox", "iceweasel"]:

0 commit comments

Comments
 (0)