Improved compatibility with Gitlab + reduce refresh time to 5 seconds instead of 10
This commit is contained in:
parent
612ad6ea70
commit
099b75e0b9
|
@ -18,7 +18,7 @@ def get_menu_element(driver,menu_item_text):
|
||||||
def click_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))
|
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
|
from selenium.common.exceptions import TimeoutException
|
||||||
|
|
||||||
i = 1
|
i = 1
|
||||||
|
|
|
@ -39,7 +39,6 @@ print "Tests skipped: %s" % c.skipped
|
||||||
print "Tests with errors: %s" % c.errors
|
print "Tests with errors: %s" % c.errors
|
||||||
|
|
||||||
if (len(c.failures)+len(c.errors)+len(c.skipped)) != 0:
|
if (len(c.failures)+len(c.errors)+len(c.skipped)) != 0:
|
||||||
sys.exit(1)
|
raise Exception(Build failed)
|
||||||
|
|
||||||
|
|
||||||
else:
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
Loading…
Reference in New Issue