better handeling of mobile login
This commit is contained in:
parent
f668c49e09
commit
545eea48cc
24
V4.py
24
V4.py
|
@ -674,29 +674,23 @@ def Mlogin(echec):
|
||||||
MRGPD()
|
MRGPD()
|
||||||
printf("début du login")
|
printf("début du login")
|
||||||
MobileDriver.find_element(By.ID, "mHamburger").click()
|
MobileDriver.find_element(By.ID, "mHamburger").click()
|
||||||
CustomSleep(uniform(1, 2))
|
WaitUntilVisible(By.ID, "hb_s", browser=MobileDriver)
|
||||||
MobileDriver.find_element(By.ID, "hb_s").click()
|
MobileDriver.find_element(By.ID, "hb_s").click()
|
||||||
CustomSleep(uniform(1, 2))
|
WaitUntilVisible(By.ID, "i0116", browser=MobileDriver)
|
||||||
mail = MobileDriver.find_element(By.ID, "i0116")
|
mail = MobileDriver.find_element(By.ID, "i0116")
|
||||||
send_keys_wait(mail, _mail)
|
send_keys_wait(mail, _mail)
|
||||||
mail.send_keys(Keys.ENTER)
|
mail.send_keys(Keys.ENTER)
|
||||||
CustomSleep(uniform(7, 9))
|
WaitUntilVisible(By.ID, "i0118", browser=MobileDriver)
|
||||||
pwd = MobileDriver.find_element(By.ID, "i0118")
|
pwd = MobileDriver.find_element(By.ID, "i0118")
|
||||||
send_keys_wait(pwd, _password)
|
send_keys_wait(pwd, _password)
|
||||||
pwd.send_keys(Keys.ENTER)
|
pwd.send_keys(Keys.ENTER)
|
||||||
CustomSleep(uniform(1, 2))
|
CustomSleep(uniform(1, 2))
|
||||||
try:
|
for i in ["KmsiCheckboxField", "iLooksGood", "idSIButton9"]:
|
||||||
MobileDriver.find_element(By.ID, "KmsiCheckboxField").click()
|
try:
|
||||||
except Exception as e:
|
MobileDriver.find_element(By.ID,i ).click()
|
||||||
pass
|
except Exception as e:
|
||||||
try:
|
pass
|
||||||
MobileDriver.find_element(By.ID, "iLooksGood").click()
|
|
||||||
except Exception as e:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
MobileDriver.find_element(By.ID, "idSIButton9").click()
|
|
||||||
except Exception as e:
|
|
||||||
pass
|
|
||||||
printf("fin du Mlogin")
|
printf("fin du Mlogin")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue