Skip to content

Commit ed5860d

Browse files
author
AutomatedTester
committed
Update window switching key if it hits a spec compliant browser
1 parent 61e866d commit ed5860d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/switch_to.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ def window(self, window_name):
8787
driver.switch_to.window('main')
8888
"""
8989
data = {'name': window_name}
90-
if self._driver.capabilities['marionette'] == True:
90+
if self._driver.capabilities['w3c'] == True:
9191
data = {'handle': window_name}
9292
self._driver.execute(Command.SWITCH_TO_WINDOW, data)

0 commit comments

Comments
 (0)