Commit 2c3e7dac authored by Xiaowu Zhang's avatar Xiaowu Zhang

run-zelenium-test: continue to wait except timeout

parent d708513f
......@@ -146,9 +146,16 @@ def main():
) - 1 # First child is the file name
# Wait for test to be executed
while 1:
try:
WebDriverWait(browser, args.max_duration).until(EC.presence_of_element_located((
By.XPATH, '//td[@id="testRuns" and contains(text(), "%i")]' % test_count
)))
break
except TimeoutException as error:
raise error
except Exception:
traceback.print_exc()
except:
test_line_dict['UnexpectedException'] = {
'test_count': 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment