From 0b46efe4ea98243a92ad8bf746109de40729f18a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 9 Nov 2024 15:09:08 -0500 Subject: [PATCH] test: Hack around an intermitted -t=auto failure. --- tools/autotest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/autotest.py b/tools/autotest.py index a7ef04c2..09352d00 100755 --- a/tools/autotest.py +++ b/tools/autotest.py @@ -198,7 +198,12 @@ try: wait.until(expected_conditions.presence_of_element_located((By.ID, 'content'))) - driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'identity').click() + while True: + try: + driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'identity').click() + break + except: + pass driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'logout').click() driver.find_element(By.TAG_NAME, 'tf-auth').shadow_root.find_element(By.ID, 'guest_label').click() driver.find_element(By.TAG_NAME, 'tf-auth').shadow_root.find_element(By.ID, 'guestButton').click()