Skip to content

Commit 854ef10

Browse files
committed
[test] fix race condition in issue4164-close-not-quit on OSX
1 parent 9776e13 commit 854ef10

File tree

1 file changed

+5
-4
lines changed
  • test/sanity/issue4164-close-not-quit

1 file changed

+5
-4
lines changed

test/sanity/issue4164-close-not-quit/test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
try:
1818
print driver.current_url
1919
wait_window_handles(driver, 2)
20-
print 'close windows in reversed order'
21-
for handle in reversed(driver.window_handles):
22-
driver.switch_to_window(handle)
23-
driver.close()
20+
switch_to_devtools(driver, None, True)
21+
driver.close()
22+
wait_window_handles(driver, 1)
23+
driver.switch_to_window(driver.window_handles[0])
24+
driver.close()
2425

2526
time.sleep(3) # wait for quit
2627
assert(no_live_process(driver))

0 commit comments

Comments
 (0)