[py] fix file uploads for Firefox
_is_remote needs to be set to False after calling RemoteWebDriver.__init__ since it sets it to True
@@ -105,7 +105,6 @@ class WebDriver(RemoteWebDriver):
self.profile = None
self.service = None
self._w3c = False
- self._is_remote = False
if capabilities is None:
capabilities = DesiredCapabilities.FIREFOX.copy()
@@ -176,6 +175,8 @@ class WebDriver(RemoteWebDriver):
desired_capabilities=capabilities,
keep_alive=True)
+ self._is_remote = False
+
def quit(self):
"""Quits the driver and close every associated window."""
try:
