Skip to content

Commit

Permalink
[py]: bugfix _get_firefox_start_cmd referencing invalid os._name
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Oct 2, 2022
1 parent 49efb1c commit a8026c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/firefox_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _get_firefox_start_cmd(self):
start_cmd = os.path.expanduser("~") + start_cmd
elif self.platform == "windows": # same
start_cmd = self._find_exe_in_registry() or self._default_windows_location()
elif self.platform == "java" and os._name == "nt":
elif self.platform == "java" and os.name == "nt":
start_cmd = self._default_windows_location()
else:
for ffname in ["firefox", "iceweasel"]:
Expand Down

0 comments on commit a8026c1

Please sign in to comment.