Fix exception handling in instances_page.py in ui tests

This commit is contained in:
Théophile Diot 2024-03-24 11:48:09 +00:00 committed by GitHub
parent a7df3efd0c
commit 47b86c9a48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ try:
try:
form = safe_get_element(DRIVER, By.XPATH, "//form[starts-with(@id, 'form-instance-')]")
except TimeoutException:
except:
if retries >= 3:
exit(1)
retries += 1