where are you ?
This commit is contained in:
parent
799f8d0b43
commit
1d4021edb0
8
V6.py
8
V6.py
@ -208,12 +208,11 @@ def do_poll():
|
|||||||
|
|
||||||
|
|
||||||
def all_cards():
|
def all_cards():
|
||||||
|
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")
|
||||||
custom_sleep(2)
|
custom_sleep(2)
|
||||||
if "welcometour" in driver.current_url:
|
|
||||||
welcome_tour_NO(driver)
|
|
||||||
try :
|
try :
|
||||||
promo()
|
promo()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -246,13 +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")
|
||||||
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")
|
||||||
liste[i].click()
|
liste[i].click()
|
||||||
|
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")
|
||||||
try_play(driver.title)
|
try_play(driver.title)
|
||||||
close_tab(driver.window_handles[1])
|
close_tab(driver.window_handles[1])
|
||||||
try :
|
try :
|
||||||
@ -789,7 +792,6 @@ 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("there ?")
|
|
||||||
try:
|
try:
|
||||||
all_cards()
|
all_cards()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user