We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e866d commit ed5860dCopy full SHA for ed5860d
py/selenium/webdriver/remote/switch_to.py
@@ -87,6 +87,6 @@ def window(self, window_name):
87
driver.switch_to.window('main')
88
"""
89
data = {'name': window_name}
90
- if self._driver.capabilities['marionette'] == True:
+ if self._driver.capabilities['w3c'] == True:
91
data = {'handle': window_name}
92
self._driver.execute(Command.SWITCH_TO_WINDOW, data)
0 commit comments