forked from piair/MsRewards-Reborn
c'est ptet un fix, mais encore une fois je sais pas pk
This commit is contained in:
parent
1a44c60202
commit
7a02560473
14
V6.py
14
V6.py
@ -208,7 +208,7 @@ def do_poll():
|
||||
|
||||
|
||||
def all_cards():
|
||||
input("1")
|
||||
#input("1")
|
||||
driver.get("https://rewards.bing.com")
|
||||
wait_until_visible(By.CLASS_NAME, "c-card-content", 10, driver)
|
||||
liste = driver.find_elements(By.CLASS_NAME, "c-card-content")
|
||||
@ -245,17 +245,17 @@ def all_cards():
|
||||
except IndexError :
|
||||
if i == len(liste) & i > 15 :
|
||||
checked = False
|
||||
input("2")
|
||||
#input("2")
|
||||
if checked:
|
||||
custom_sleep(1.5)
|
||||
driver.execute_script("arguments[0].scrollIntoView();", liste[i])
|
||||
custom_sleep(1.5)
|
||||
input("3")
|
||||
#input("3")
|
||||
liste[i].click()
|
||||
input("4")
|
||||
#input("4")
|
||||
if len(driver.window_handles) > 1 :
|
||||
driver.switch_to.window(driver.window_handles[1])
|
||||
input("5")
|
||||
#input("5")
|
||||
try_play(driver.title)
|
||||
close_tab(driver.window_handles[1])
|
||||
try :
|
||||
@ -787,7 +787,7 @@ def CustomStart():
|
||||
if "tout" in Actions:
|
||||
daily_routine(True)
|
||||
if "daily" in Actions:
|
||||
input("0")
|
||||
#input("0")
|
||||
try:
|
||||
all_cards()
|
||||
except Exception as e:
|
||||
@ -831,7 +831,7 @@ display.start()
|
||||
|
||||
if g.dev :
|
||||
driver = firefox_driver()
|
||||
input("kill ?")
|
||||
#input("kill ?")
|
||||
driver.quit()
|
||||
elif g.custom_start:
|
||||
CustomStart()
|
||||
|
Loading…
Reference in New Issue
Block a user