[py] Fix active_element for w3c drivers
@@ -39,7 +39,7 @@ class SwitchTo:
element = driver.switch_to.active_element
"""
if self._driver.w3c:
- return self._driver.execute(Command.W3C_GET_ACTIVE_ELEMENT)
+ return self._driver.execute(Command.W3C_GET_ACTIVE_ELEMENT)['value']
else:
return self._driver.execute(Command.GET_ACTIVE_ELEMENT)['value']
