Skip to content

Commit a6b77f0

Browse files
author
AutomatedTester
committed
Update check to see if we are speaking to a W3C remote end point
specificationLevel is defined in http://w3c.github.io/webdriver/webdriver-spec.html#capabilities
1 parent bea9516 commit a6b77f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/webdriver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def start_session(self, desired_capabilities, browser_profile=None):
139139
self.capabilities = response['value']
140140

141141
# Quick check to see if we have a W3C Compliant browser
142-
self.w3c = "takesElementScreenshot" in self.capabilities
142+
self.w3c = "specificationLevel" in self.capabilities
143143

144144
def _wrap_value(self, value):
145145
if isinstance(value, dict):

0 commit comments

Comments
 (0)