login
This commit is contained in:
parent
a503e3bc16
commit
00a947631a
14
V4.py
14
V4.py
|
@ -438,17 +438,29 @@ def login():
|
||||||
pwd.send_keys(Keys.ENTER)
|
pwd.send_keys(Keys.ENTER)
|
||||||
CustomSleep(5)
|
CustomSleep(5)
|
||||||
printf("pwd envoyé")
|
printf("pwd envoyé")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
driver.find_element(By.ID, "KmsiCheckboxField").click()
|
driver.find_element(By.ID, "KmsiCheckboxField").click()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
printf(f"login - 1 - erreur validation bouton KmsiCheckboxField. pas forcement grave {e}")
|
printf(f"login - 1 - erreur validation bouton KmsiCheckboxField. pas forcement grave {e}")
|
||||||
|
|
||||||
|
try:
|
||||||
|
driver.find_element(By.ID, "iLooksGood").click()
|
||||||
|
except Exception as e:
|
||||||
|
printf(f"login - 2 - erreur validation bouton iLooksGood. pas forcement grave {e}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
driver.find_element(By.ID, "idSIButton9").click()
|
driver.find_element(By.ID, "idSIButton9").click()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
printf(f"login - 2 - erreur validation bouton idSIButton9. pas forcement grave {e}")
|
printf(f"login - 2 - erreur validation bouton idSIButton9. pas forcement grave {e}")
|
||||||
|
|
||||||
|
try:
|
||||||
|
driver.find_element(By.ID, "iCancel").click()
|
||||||
|
except Exception as e:
|
||||||
|
printf(f"login - 2 - erreur validation bouton iCancel. pas forcement grave {e}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf("login completed")
|
printf("login completed")
|
||||||
RGPD()
|
RGPD()
|
||||||
driver.get("https://www.bing.com/rewardsapp/flyout")
|
driver.get("https://www.bing.com/rewardsapp/flyout")
|
||||||
|
|
Loading…
Reference in New Issue