Skip to content

Commit c499640

Browse files
Cong Liurogerwang
authored andcommitted
[test] switch to devtools window w/o specifying window handle
Fixed the case of cookie-lost-devtools-close
1 parent bc029fe commit c499640

File tree

1 file changed

+1
-1
lines changed
  • test/sanity/cookie-lost-devtools-close

1 file changed

+1
-1
lines changed

test/sanity/cookie-lost-devtools-close/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def click_expect(expected):
4848
wait_window_handles(driver, 2)
4949
click_expect('sid=1')
5050
print 'close devtools'
51-
switch_to_devtools(driver, devtools_window=driver.window_handles[-1])
51+
switch_to_devtools(driver)
5252
driver.close()
5353
driver.switch_to_window(driver.window_handles[0])
5454
wait_window_handles(driver, 1)

0 commit comments

Comments
 (0)