remove Python3.10 functions
This commit is contained in:
parent
b2483393cf
commit
216c036441
47
V4.py
47
V4.py
|
@ -567,30 +567,29 @@ def TryPlay(nom ="inconnu"):
|
||||||
|
|
||||||
RGPD()
|
RGPD()
|
||||||
def play(number, override = None) :
|
def play(number, override = None) :
|
||||||
match number :
|
if number == 8 or number == 9 :
|
||||||
case 9 | 8 :
|
try :
|
||||||
try :
|
print(f'Quiz 8 détécté sur la page {nom}')
|
||||||
print(f'Quiz 8 détécté sur la page {nom}')
|
RGPD()
|
||||||
RGPD()
|
PlayQuiz8(override)
|
||||||
PlayQuiz8(override)
|
except Exception as e :
|
||||||
except Exception as e :
|
printf(f'echec de PlayQuiz 8. Aborted {e}')
|
||||||
printf(f'echec de PlayQuiz 8. Aborted {e}')
|
elif number == 5 or number == 4 :
|
||||||
case 5 | 4 :
|
try :
|
||||||
try :
|
print(f'Quiz 4 détécté sur la page {nom}')
|
||||||
print(f'Quiz 4 détécté sur la page {nom}')
|
RGPD()
|
||||||
RGPD()
|
PlayQuiz4(override)
|
||||||
PlayQuiz4(override)
|
print('Quiz 4 reussit')
|
||||||
print('Quiz 4 reussit')
|
except Exception as e :
|
||||||
except Exception as e :
|
printf(f'echec de PlayQuiz 4. Aborted {e}')
|
||||||
printf(f'echec de PlayQuiz 4. Aborted {e}')
|
elif number == 3 or number == 2 :
|
||||||
case 3 | 2 :
|
try :
|
||||||
try :
|
RGPD()
|
||||||
RGPD()
|
print(f'Quiz 2 détécté sur la page {nom}')
|
||||||
print(f'Quiz 2 détécté sur la page {nom}')
|
PlayQuiz2(override)
|
||||||
PlayQuiz2(override)
|
except Exception as e :
|
||||||
except Exception as e :
|
printf(f'echec de PlayQuiz 2. Aborted {e}')
|
||||||
printf(f'echec de PlayQuiz 2. Aborted {e}')
|
else :
|
||||||
case _ :
|
|
||||||
LogError('probleme dans la carte : il y a un bouton play et aucun quiz')
|
LogError('probleme dans la carte : il y a un bouton play et aucun quiz')
|
||||||
try :
|
try :
|
||||||
driver.find_element(By.ID, 'rqStartQuiz').click() #start the quiz
|
driver.find_element(By.ID, 'rqStartQuiz').click() #start the quiz
|
||||||
|
|
Loading…
Reference in New Issue