Et si on l'active ?

This commit is contained in:
augustin64 2024-05-12 18:07:36 +02:00
parent 402b8cd3ef
commit 778adc67d2
1 changed files with 4 additions and 2 deletions

6
V6.py
View File

@ -226,11 +226,13 @@ def all_cards():
"""
try:
streak_protection_close = driver.find_element(By.ID, "streak-protection-popup-close-cross")
streak_protection_close.click()
streak_protection_activate = driver.find_elements(By.CLASS_NAME, "earningPagePopUpPopUpSelectButton")
streak_protection_activate[0].click()
info("Popup 'Streak Protection' reçue")
custom_sleep(1.5)
return True
except exceptions.NoSuchElementException:
except (exceptions.NoSuchElementException, IndexError):
return False
driver.get("https://rewards.bing.com")