oui.
This commit is contained in:
parent
bd7f9964c2
commit
aff22cbdcd
9
V4.py
9
V4.py
@ -668,7 +668,12 @@ def LogPoint(account="unknown"): #log des points sur discord
|
|||||||
|
|
||||||
def Fidelite(lien):
|
def Fidelite(lien):
|
||||||
try :
|
try :
|
||||||
driver.switch_to.window(driver.window_handles[0])
|
while 1 :
|
||||||
|
try :
|
||||||
|
Close(1)
|
||||||
|
except :
|
||||||
|
break
|
||||||
|
|
||||||
driver.get(lien)
|
driver.get(lien)
|
||||||
sleep(2)
|
sleep(2)
|
||||||
choix = driver.find_element(By.CSS_SELECTOR,'div[class="pull-left spacer-48-bottom punchcard-row"]') #pull-left spacer-48-bottom punchcard-row
|
choix = driver.find_element(By.CSS_SELECTOR,'div[class="pull-left spacer-48-bottom punchcard-row"]') #pull-left spacer-48-bottom punchcard-row
|
||||||
@ -681,7 +686,7 @@ def Fidelite(lien):
|
|||||||
bouton = driver.find_element(By.XPATH, f'//span[text()="{ButtonText}"]')
|
bouton = driver.find_element(By.XPATH, f'//span[text()="{ButtonText}"]')
|
||||||
bouton.click()
|
bouton.click()
|
||||||
CustomSleep(uniform(3,5))
|
CustomSleep(uniform(3,5))
|
||||||
driver.switch_to.window(driver.window_handles[0])
|
driver.switch_to.window(driver.window_handles[1])
|
||||||
TryPlay(driver.title)
|
TryPlay(driver.title)
|
||||||
driver.get(lien)
|
driver.get(lien)
|
||||||
CustomSleep(uniform(3,5))
|
CustomSleep(uniform(3,5))
|
||||||
|
Loading…
Reference in New Issue
Block a user