mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix instances_page.py for ui tests
This commit is contained in:
parent
31f65bf67d
commit
a7df3efd0c
1 changed files with 7 additions and 2 deletions
|
|
@ -22,8 +22,13 @@ try:
|
|||
try:
|
||||
form = safe_get_element(DRIVER, By.XPATH, "//form[starts-with(@id, 'form-instance-')]")
|
||||
except TimeoutException:
|
||||
log_exception("No instance form found, exiting ...")
|
||||
exit(1)
|
||||
if retries >= 3:
|
||||
exit(1)
|
||||
retries += 1
|
||||
log_warning("No instance form found, retrying ...")
|
||||
sleep(2)
|
||||
DRIVER.refresh()
|
||||
continue
|
||||
|
||||
try:
|
||||
access_page(DRIVER, f"//form[starts-with(@id, 'form-instance-')]//button[@value='{action}']", "instances", False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue