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 ca8f707 commit e095176Copy full SHA for e095176
test/sanity/worker-nwbin/test.py
@@ -4,6 +4,9 @@
4
import subprocess
5
import platform
6
from subprocess import Popen, PIPE
7
+import sys
8
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
9
+from nw_util import *
10
11
from selenium import webdriver
12
from selenium.webdriver.chrome.options import Options
@@ -24,8 +27,8 @@
24
27
driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options)
25
28
try:
26
29
print driver.current_url
- result = driver.find_element_by_id('result')
- print result.get_attribute('innerHTML')
- assert("840" == result.get_attribute('innerHTML'))
30
+ result = wait_for_element_id_content(driver, 'result', '840')
31
+ print result
32
+ assert("840" == result)
33
finally:
34
driver.quit()
0 commit comments