From 6920504762e13ee9591ab7e3993712c383c6cdfb Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 31 Dec 2023 02:41:16 +0000 Subject: [PATCH] Work around this test failure. Dunno. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4714 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- tools/autotest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/autotest.py b/tools/autotest.py index 59a27366..79bd29dd 100755 --- a/tools/autotest.py +++ b/tools/autotest.py @@ -40,7 +40,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')))) - tf_app = wait.until(expected_conditions.presence_of_element_located((By.TAG_NAME, 'tf-app'))).shadow_root + # NoSuchShadowRootException + for i in range(5): + try: + tf_app = wait.until(expected_conditions.presence_of_element_located((By.TAG_NAME, 'tf-app'))).shadow_root + break + except: + pass wait.until(expected_conditions.element_to_be_clickable(tf_app.find_element(By.ID, 'create_identity'))).click() wait.until(expected_conditions.alert_is_present()).accept()