From 32a335c67667ae42b9b80010da7536fb5621e3a4 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 30 Oct 2024 19:32:05 -0400 Subject: [PATCH] test: Retry harder. --- tools/autotest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/autotest.py b/tools/autotest.py index 7a7b6a07..a7ef04c2 100755 --- a/tools/autotest.py +++ b/tools/autotest.py @@ -205,7 +205,13 @@ try: wait.until(expected_conditions.presence_of_element_located((By.ID, 'content'))) driver.switch_to.frame(wait.until(expected_conditions.presence_of_element_located((By.ID, 'document')))) - wait.until(expected_conditions.presence_of_element_located((By.TAG_NAME, 'tf-app'))).shadow_root + # NoSuchShadowRootException + while True: + try: + tf_app = wait.until(expected_conditions.presence_of_element_located((By.TAG_NAME, 'tf-app'))).shadow_root + break + except: + pass driver.switch_to.default_content() driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'logout').click()