Skip to content

Commit 557a114

Browse files
committed
[py] fix file uploads for Firefox
_is_remote needs to be set to False after calling RemoteWebDriver.__init__ since it sets it to True
1 parent 6e3a5c9 commit 557a114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/firefox/webdriver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def __init__(self, firefox_profile=None, firefox_binary=None,
105105
self.profile = None
106106
self.service = None
107107
self._w3c = False
108-
self._is_remote = False
109108

110109
if capabilities is None:
111110
capabilities = DesiredCapabilities.FIREFOX.copy()
@@ -176,6 +175,8 @@ def __init__(self, firefox_profile=None, firefox_binary=None,
176175
desired_capabilities=capabilities,
177176
keep_alive=True)
178177

178+
self._is_remote = False
179+
179180
def quit(self):
180181
"""Quits the driver and close every associated window."""
181182
try:

0 commit comments

Comments
 (0)