test: Retry harder.
This commit is contained in:
		| @@ -205,7 +205,13 @@ try: | |||||||
|  |  | ||||||
| 	wait.until(expected_conditions.presence_of_element_located((By.ID, 'content'))) | 	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')))) | 	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.switch_to.default_content() | ||||||
|  |  | ||||||
| 	driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'logout').click() | 	driver.find_element(By.TAG_NAME, 'tf-navigation').shadow_root.find_element(By.ID, 'logout').click() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user