cleander Logs

This commit is contained in:
piair 2022-06-20 18:16:15 +02:00
parent 66d5354ac2
commit 1eb606a62c
1 changed files with 6 additions and 6 deletions

12
V4.py
View File

@ -329,8 +329,8 @@ def RGPD():
""" """
PlayQuiz2([int : override]) make the quizz with 2 choice each time. They usually have 10 questions. PlayQuiz[N]([int : override]) make the quizz with N choice each time. They usually have between 4 and 10 questions.
override is the number of question, by default, it's 10. Can be usefull in some case, where the programm crashes before finishing the quizz override is the number of question, by default, it's the number of question in this specific quizz. Can be usefull in some case, where the programm crashes before finishing the quizz
""" """
def PlayQuiz2(override=10): def PlayQuiz2(override=10):
printf("debut de PlayQuiz2") printf("debut de PlayQuiz2")
@ -574,25 +574,25 @@ def login():
driver.find_element(By.ID, "KmsiCheckboxField").click() driver.find_element(By.ID, "KmsiCheckboxField").click()
except Exception as e: except Exception as e:
pass pass
printf(f"login - 2.1 - erreur validation bouton KmsiCheckboxField. pas forcement grave {e}") #printf(f"login - 2.1 - erreur validation bouton KmsiCheckboxField. pas forcement grave {e}")
try: try:
driver.find_element(By.ID, "iLooksGood").click() driver.find_element(By.ID, "iLooksGood").click()
except Exception as e: except Exception as e:
pass pass
printf(f"login - 2.2 - erreur validation bouton iLooksGood. pas forcement grave {e}") #printf(f"login - 2.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:
pass pass
printf(f"login - 2.3 - erreur validation bouton idSIButton9. pas forcement grave {e}") #printf(f"login - 2.3 - erreur validation bouton idSIButton9. pas forcement grave {e}")
try: try:
driver.find_element(By.ID, "iCancel").click() driver.find_element(By.ID, "iCancel").click()
except Exception as e: except Exception as e:
pass pass
printf(f"login - 2.4 - erreur validation bouton iCancel. pas forcement grave {e}") #printf(f"login - 2.4 - erreur validation bouton iCancel. pas forcement grave {e}")
printf("login completed") printf("login completed")