Improved compatibility with Gitlab + reduce refresh time to 5 seconds instead of 10

This commit is contained in:
axl89 2016-05-27 19:09:26 +02:00
parent 612ad6ea70
commit 099b75e0b9
2 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@ def get_menu_element(driver,menu_item_text):
def click_menu_element(driver,menu_item_text):
return driver.execute_script("arguments[0].click();", get_menu_element(driver,menu_item_text))
def refresh_N_times_until_find_element(driver,n,element_text,how=By.ID,refresh_time=10):
def refresh_N_times_until_find_element(driver,n,element_text,how=By.ID,refresh_time=5):
from selenium.common.exceptions import TimeoutException
i = 1

View File

@ -39,7 +39,6 @@ print "Tests skipped: %s" % c.skipped
print "Tests with errors: %s" % c.errors
if (len(c.failures)+len(c.errors)+len(c.skipped)) != 0:
sys.exit(1)
raise Exception(Build failed)
else:
sys.exit(0)