We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c646a38 commit a00bd01Copy full SHA for a00bd01
test/sanity/issue4199-cookie/test.py
@@ -12,11 +12,9 @@
12
13
driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options)
14
driver.implicitly_wait(2)
15
-time.sleep(1)
16
try:
17
print driver.current_url
18
- cookie = driver.find_element_by_id('cookie').get_attribute('innerHTML')
+ cookie = wait_for_element_id_content(driver, 'cookie', 'Hi there')
19
print cookie
20
- assert ('Hi there' in cookie)
21
finally:
22
driver.quit()
0 commit comments