diff --git a/V6.py b/V6.py index e13c214..3727e3f 100755 --- a/V6.py +++ b/V6.py @@ -204,6 +204,7 @@ def all_cards(): return False 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) 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()