diff --git a/py/selenium/webdriver/firefox/firefox_binary.py b/py/selenium/webdriver/firefox/firefox_binary.py index 5bd1daeb49c51..6abf6c040835f 100644 --- a/py/selenium/webdriver/firefox/firefox_binary.py +++ b/py/selenium/webdriver/firefox/firefox_binary.py @@ -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"]: