This commit is contained in:
piair 2022-05-15 11:13:18 +02:00
parent a503e3bc16
commit 00a947631a

14
V4.py
View File

@ -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")