Skip to content

Commit 01ac9f8

Browse files
Use W3C check from parent object instead of assuming from capabilities
1 parent 66c896d commit 01ac9f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

py/selenium/webdriver/firefox/webdriver.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def __init__(self, firefox_profile=None, firefox_binary=None,
104104
self.binary = None
105105
self.profile = None
106106
self.service = None
107-
self._w3c = False
108107

109108
if capabilities is None:
110109
capabilities = DesiredCapabilities.FIREFOX.copy()
@@ -138,8 +137,7 @@ def __init__(self, firefox_profile=None, firefox_binary=None,
138137
# TODO(ato): Perform conformance negotiation
139138

140139
if capabilities.get("marionette"):
141-
self._w3c = True
142-
140+
capabilities.pop("marionette")
143141
self.service = Service(executable_path, log_path=log_path)
144142
self.service.start()
145143

@@ -186,7 +184,7 @@ def quit(self):
186184
# the socket.
187185
pass
188186

189-
if self._w3c:
187+
if self.w3c:
190188
self.service.stop()
191189
else:
192190
self.binary.kill()

0 commit comments

Comments
 (0)