diff --git a/V4.py b/V4.py index 735619b..5e33a2f 100755 --- a/V4.py +++ b/V4.py @@ -438,17 +438,29 @@ def login(): pwd.send_keys(Keys.ENTER) CustomSleep(5) printf("pwd envoyé") - + try: driver.find_element(By.ID, "KmsiCheckboxField").click() except Exception as 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: driver.find_element(By.ID, "idSIButton9").click() except Exception as 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") RGPD() driver.get("https://www.bing.com/rewardsapp/flyout")