Skip to content

Commit

Permalink
Update W3C supported handle to use response instead of looking at cap…
Browse files Browse the repository at this point in the history
…abilities

Check the response back from a W3C conformant remote end for status key on
the response.
  • Loading branch information
AutomatedTester committed Jul 14, 2016
1 parent fe0ed9a commit cefa1bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def start_session(self, desired_capabilities, browser_profile=None):
self.capabilities = response['value']

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

def _wrap_value(self, value):
if isinstance(value, dict):
Expand Down

0 comments on commit cefa1bf

Please sign in to comment.