This commit is contained in:
piair 2022-05-27 09:37:34 +02:00
parent 365df0abcd
commit b26f0c1130
1 changed files with 3 additions and 0 deletions

3
V4.py
View File

@ -633,6 +633,8 @@ def BingMobileSearch(override=randint(22, 25)):
CustomSleep(uniform(3, 5)) CustomSleep(uniform(3, 5))
printf("debut du login", Mobdriver=MobileDriver) printf("debut du login", Mobdriver=MobileDriver)
MRGPD() MRGPD()
CustomSleep(uniform(3, 5))
MobileDriver.find_element(By.ID, "mHamburger").click() MobileDriver.find_element(By.ID, "mHamburger").click()
CustomSleep(uniform(1, 2)) CustomSleep(uniform(1, 2))
printf("login - 1", Mobdriver=MobileDriver) printf("login - 1", Mobdriver=MobileDriver)
@ -656,6 +658,7 @@ def BingMobileSearch(override=randint(22, 25)):
except Exception as e: except Exception as e:
echec += 1 echec += 1
if echec <= 3: if echec <= 3:
LogError(e, Mobdriver=MobileDriver)
printf( printf(
f"echec du login sur la version mobile. on reesaye ({echec}/3), {e}" f"echec du login sur la version mobile. on reesaye ({echec}/3), {e}"
) )