diff --git a/tools/autotest.py b/tools/autotest.py index 79bd29dd..66728ec1 100755 --- a/tools/autotest.py +++ b/tools/autotest.py @@ -41,7 +41,7 @@ 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')))) # NoSuchShadowRootException - for i in range(5): + while True: try: tf_app = wait.until(expected_conditions.presence_of_element_located((By.TAG_NAME, 'tf-app'))).shadow_root break