This commit is contained in:
piair 2022-05-27 10:07:19 +02:00
parent e4ad601317
commit cfb26f6732

26
V4.py
View File

@ -629,25 +629,25 @@ def BingMobileSearch(override=randint(22, 25)):
try: try:
MobileDriver.get( MobileDriver.get(
"https://www.bing.com/search?q=test+speed&qs=LS&pq=test+s&sk=PRES1&sc=8-6&cvid=19&FORM=QBRE&sp=1" "https://login.live.com/login.srf?wa=wsignin1.0&wreply=https%3a%2f%2fwww.bing.com%2fsecure%2fPassport.aspx%3frequrl%3dhttps%253a%252f%252fwww.bing.com%252fsearch%253fq%253dtest%252bdebit&aadredir=1"
) )
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)) 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)
MobileDriver.find_element(By.ID, "hb_s").click() #MobileDriver.find_element(By.ID, "hb_s").click()
CustomSleep(uniform(1, 2)) #CustomSleep(uniform(1, 2))
printf("login - 1.5", Mobdriver=MobileDriver) #printf("login - 1.5", Mobdriver=MobileDriver)
try : #try :
MobileDriver.find_element(By.ID, "hb_a").click() # MobileDriver.find_element(By.ID, "hb_a").click()
CustomSleep(uniform(1, 2)) # CustomSleep(uniform(1, 2))
printf("login - 2", Mobdriver=MobileDriver) # printf("login - 2", Mobdriver=MobileDriver)
except Exception as e : #except Exception as e :
LogError(e) # LogError(e)
mail = MobileDriver.find_element(By.ID, "i0116") mail = MobileDriver.find_element(By.ID, "i0116")
send_keys_wait(mail, _mail) send_keys_wait(mail, _mail)
printf("login - 3", Mobdriver=MobileDriver) printf("login - 3", Mobdriver=MobileDriver)