Compare commits

..

No commits in common. "6995bde8a668e8f5da6410a515a86d377bf3028e" and "3c74aa025e0f6493fb59ccfd2b4b1295f6037269" have entirely different histories.

2 changed files with 1 additions and 19 deletions

18
V6.py
View File

@ -220,22 +220,6 @@ def all_cards():
custom_sleep(1.5) custom_sleep(1.5)
return True return True
def check_streak_protection() -> bool:
"""
Ne perdez plus jamais votre série !
"""
try:
streak_protection_close = driver.find_element(By.ID, "streak-protection-popup-close-cross")
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, exceptions.ElementNotInteractableException, IndexError):
# les éléments sont présents dans le DOM même quand la popup n'est pas visible apparemment
return False
driver.get("https://rewards.bing.com") driver.get("https://rewards.bing.com")
wait_until_visible(By.CLASS_NAME, "c-card-content", 10, driver) wait_until_visible(By.CLASS_NAME, "c-card-content", 10, driver)
@ -290,7 +274,6 @@ def all_cards():
custom_sleep(1.5) custom_sleep(1.5)
check_welcome_tour() check_welcome_tour()
check_streak_protection()
driver.execute_script("arguments[0].scrollIntoView();", card_list[i]) driver.execute_script("arguments[0].scrollIntoView();", card_list[i])
custom_sleep(1.5) custom_sleep(1.5)
card_list[i].click() card_list[i].click()
@ -308,7 +291,6 @@ def all_cards():
continue continue
check_welcome_tour() check_welcome_tour()
check_streak_protection()
driver.execute_script("arguments[0].scrollIntoView();", card_list[i]) driver.execute_script("arguments[0].scrollIntoView();", card_list[i])
card_list[i].click() card_list[i].click()

View File

@ -1 +1 @@
v6.8.53 v6.8.52