From feb7834d1f3cd2ce57eee0aeb7dd4a4593cc5455 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sat, 13 Apr 2024 10:26:53 +0200 Subject: [PATCH] sleep a bit --- V6.py | 1 + 1 file changed, 1 insertion(+) diff --git a/V6.py b/V6.py index 3727e3f..43ea44e 100755 --- a/V6.py +++ b/V6.py @@ -205,6 +205,7 @@ def all_cards(): info("Popup 'Explorer le programme' reçue") wait_until_visible(By.CSS_SELECTOR, '[aria-label="Boîte de dialogue Récompenses"]', timeout=10, browser=driver) + custom_sleep(1.5) rewards_box = driver.find_element(By.CSS_SELECTOR, '[aria-label="Boîte de dialogue Récompenses"]') close_button = rewards_box.find_element(By.CSS_SELECTOR, '[aria-label="Fermer"]') close_button.click()