From 00a947631ade2d15a6007be8af1dc25474570a98 Mon Sep 17 00:00:00 2001 From: piair Date: Sun, 15 May 2022 11:13:18 +0200 Subject: [PATCH] login --- V4.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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")