Skip to content

Commit a00bd01

Browse files
committed
[test] fix flaky issue4199-cookie
1 parent c646a38 commit a00bd01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/sanity/issue4199-cookie/test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212

1313
driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options)
1414
driver.implicitly_wait(2)
15-
time.sleep(1)
1615
try:
1716
print driver.current_url
18-
cookie = driver.find_element_by_id('cookie').get_attribute('innerHTML')
17+
cookie = wait_for_element_id_content(driver, 'cookie', 'Hi there')
1918
print cookie
20-
assert ('Hi there' in cookie)
2119
finally:
2220
driver.quit()

0 commit comments

Comments
 (0)