wait until visible

This commit is contained in:
augustin64 2024-04-13 10:26:21 +02:00
parent ae023688a4
commit 1ea1ff776e
1 changed files with 1 additions and 0 deletions

1
V6.py
View File

@ -204,6 +204,7 @@ def all_cards():
return False return False
info("Popup 'Explorer le programme' reçue") 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"]') 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 = rewards_box.find_element(By.CSS_SELECTOR, '[aria-label="Fermer"]')
close_button.click() close_button.click()