Skip to content

Commit 7439b61

Browse files
committed
[test] fix race condition in cookie-lost-devtools-close
1 parent a7750c2 commit 7439b61

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
@@ -30,7 +30,7 @@
3030
def click_expect(expected):
3131
global idx
3232
driver.find_element_by_id('get-cookie').click()
33-
result = driver.find_element_by_id('result-%s' % idx).get_attribute('innerHTML')
33+
result = wait_for_element_id(driver, 'result-%s' % idx)
3434
idx += 1
3535
print result
3636
assert(expected in result)

0 commit comments

Comments
 (0)