Skip to content

Commit cefa1bf

Browse files
Update W3C supported handle to use response instead of looking at capabilities
Check the response back from a W3C conformant remote end for status key on the response.
1 parent fe0ed9a commit cefa1bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ def start_session(self, desired_capabilities, browser_profile=None):
179179
self.capabilities = response['value']
180180

181181
# Quick check to see if we have a W3C Compliant browser
182-
self.w3c = "specificationLevel" in self.capabilities
182+
if response.get('status') is None:
183+
self.w3c = True
183184

184185
def _wrap_value(self, value):
185186
if isinstance(value, dict):

0 commit comments

Comments
 (0)