Skip to content

Commit 4a59370

Browse files
committed
🙏
1 parent 1439d08 commit 4a59370

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/fr_selenium.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import sys
1515
import json
1616
import time
17-
from datetime import datetime, timedelta
1817
from typing import List, Union
1918

2019
from seleniumwire import webdriver
@@ -186,7 +185,14 @@ def go_to_page(self):
186185
time.sleep(1)
187186
self.driver.get("http://localhost:{}".format(self.port))
188187
self.on_page = True
189-
if not_on_linux(): time.sleep(10) # bcs serialization of multiprocessing
188+
if not_on_linux(): time.sleep(7) # bcs serialization of multiprocessing
189+
max_nb_tries = 3
190+
for _ in range(max_nb_tries):
191+
try:
192+
self.driver.find_element_by_id("resample-figure")
193+
break
194+
except:
195+
time.sleep(5)
190196

191197
def clear_requests(self, sleep_time_s=1):
192198
time.sleep(sleep_time_s)

0 commit comments

Comments
 (0)