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()