c'est ptet un fix, mais encore une fois je sais pas pk

This commit is contained in:
piair 2023-09-24 22:26:03 +02:00
parent 1a44c60202
commit 7a02560473
2 changed files with 8 additions and 8 deletions

14
V6.py
View File

@ -208,7 +208,7 @@ def do_poll():
def all_cards(): def all_cards():
input("1") #input("1")
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)
liste = driver.find_elements(By.CLASS_NAME, "c-card-content") liste = driver.find_elements(By.CLASS_NAME, "c-card-content")
@ -245,17 +245,17 @@ def all_cards():
except IndexError : except IndexError :
if i == len(liste) & i > 15 : if i == len(liste) & i > 15 :
checked = False checked = False
input("2") #input("2")
if checked: if checked:
custom_sleep(1.5) custom_sleep(1.5)
driver.execute_script("arguments[0].scrollIntoView();", liste[i]) driver.execute_script("arguments[0].scrollIntoView();", liste[i])
custom_sleep(1.5) custom_sleep(1.5)
input("3") #input("3")
liste[i].click() liste[i].click()
input("4") #input("4")
if len(driver.window_handles) > 1 : if len(driver.window_handles) > 1 :
driver.switch_to.window(driver.window_handles[1]) driver.switch_to.window(driver.window_handles[1])
input("5") #input("5")
try_play(driver.title) try_play(driver.title)
close_tab(driver.window_handles[1]) close_tab(driver.window_handles[1])
try : try :
@ -787,7 +787,7 @@ def CustomStart():
if "tout" in Actions: if "tout" in Actions:
daily_routine(True) daily_routine(True)
if "daily" in Actions: if "daily" in Actions:
input("0") #input("0")
try: try:
all_cards() all_cards()
except Exception as e: except Exception as e:
@ -831,7 +831,7 @@ display.start()
if g.dev : if g.dev :
driver = firefox_driver() driver = firefox_driver()
input("kill ?") #input("kill ?")
driver.quit() driver.quit()
elif g.custom_start: elif g.custom_start:
CustomStart() CustomStart()

View File

@ -1 +1 @@
v6.5.6 v6.5.7