fixed logpoint and maybe an error in BingMobileSearch
This commit is contained in:
parent
1cc63f6d70
commit
f03fb9640a
8
V4.py
8
V4.py
|
@ -475,8 +475,14 @@ def BingPcSearch(override = randint(30,35)):
|
||||||
|
|
||||||
|
|
||||||
def BingMobileSearch(override = randint(20,25)):
|
def BingMobileSearch(override = randint(20,25)):
|
||||||
|
try :
|
||||||
try :
|
try :
|
||||||
MobileDriver = FirefoxMobile()
|
MobileDriver = FirefoxMobile()
|
||||||
|
except Exception as e :
|
||||||
|
sleep(30)
|
||||||
|
LogError('echec de la creation du driver mobile')
|
||||||
|
MobileDriver = FirefoxMobile()
|
||||||
|
|
||||||
echec = 0
|
echec = 0
|
||||||
def Mlogin(echec):
|
def Mlogin(echec):
|
||||||
|
|
||||||
|
@ -637,6 +643,7 @@ def LogPoint(account="unknown"): #log des points sur discord
|
||||||
|
|
||||||
elem = driver.find_element(By.CSS_SELECTOR, '[title="Microsoft Rewards"]')
|
elem = driver.find_element(By.CSS_SELECTOR, '[title="Microsoft Rewards"]')
|
||||||
elem.click()
|
elem.click()
|
||||||
|
CustomSleep(5)
|
||||||
driver.switch_to.window(driver.window_handles[len(driver.window_handles) - 1])
|
driver.switch_to.window(driver.window_handles[len(driver.window_handles) - 1])
|
||||||
CustomSleep(uniform(10,20))
|
CustomSleep(uniform(10,20))
|
||||||
try :
|
try :
|
||||||
|
@ -732,6 +739,7 @@ def DailyRoutine():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LogError(f'LogPoint : {e}')
|
LogError(f'LogPoint : {e}')
|
||||||
|
|
||||||
|
|
||||||
def close():
|
def close():
|
||||||
driver.quit()
|
driver.quit()
|
||||||
quit()
|
quit()
|
||||||
|
|
Loading…
Reference in New Issue