where are you ?

This commit is contained in:
piair 2023-09-24 22:13:40 +02:00
parent 799f8d0b43
commit 1d4021edb0
2 changed files with 6 additions and 4 deletions

8
V6.py
View File

@ -208,12 +208,11 @@ def do_poll():
def all_cards():
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")
custom_sleep(2)
if "welcometour" in driver.current_url:
welcome_tour_NO(driver)
try :
promo()
except Exception as e:
@ -246,13 +245,17 @@ def all_cards():
except IndexError :
if i == len(liste) & i > 15 :
checked = False
input("2")
if checked:
custom_sleep(1.5)
driver.execute_script("arguments[0].scrollIntoView();", liste[i])
custom_sleep(1.5)
input("3")
liste[i].click()
input("4")
if len(driver.window_handles) > 1 :
driver.switch_to.window(driver.window_handles[1])
input("5")
try_play(driver.title)
close_tab(driver.window_handles[1])
try :
@ -789,7 +792,6 @@ def CustomStart():
if "tout" in Actions:
daily_routine(True)
if "daily" in Actions:
input("there ?")
try:
all_cards()
except Exception as e:

View File

@ -1 +1 @@
v6.5.4
v6.5.5