the optimisation wasn't that great
This commit is contained in:
parent
d49742646c
commit
5ca91a7075
11
V6.py
11
V6.py
@ -338,11 +338,6 @@ def try_play(nom="inconnu"):
|
|||||||
debug("Poll detected")
|
debug("Poll detected")
|
||||||
do_poll()
|
do_poll()
|
||||||
|
|
||||||
elif "rqQuestionState" in driver.page_source:
|
|
||||||
number = driver.page_source.count("rqAnswerOption")
|
|
||||||
warning(f"recovery détecté. quiz : {number}")
|
|
||||||
play(number - 1)
|
|
||||||
|
|
||||||
elif search("([0-9]) de ([0-9]) finalisée", driver.page_source):
|
elif search("([0-9]) de ([0-9]) finalisée", driver.page_source):
|
||||||
info("On fidelity page.")
|
info("On fidelity page.")
|
||||||
fidelity()
|
fidelity()
|
||||||
@ -353,6 +348,11 @@ def try_play(nom="inconnu"):
|
|||||||
answer_number = driver.page_source.count("rqAnswerOption")
|
answer_number = driver.page_source.count("rqAnswerOption")
|
||||||
play(answer_number)
|
play(answer_number)
|
||||||
|
|
||||||
|
elif "rqQuestionState" in driver.page_source:
|
||||||
|
number = driver.page_source.count("rqAnswerOption")
|
||||||
|
warning(f"recovery détecté. quiz : {number}")
|
||||||
|
play(number - 1)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
info(f"Nothing to do on page `{nom}`")
|
info(f"Nothing to do on page `{nom}`")
|
||||||
custom_sleep(uniform(3, 5))
|
custom_sleep(uniform(3, 5))
|
||||||
@ -405,7 +405,6 @@ def login_part_2():
|
|||||||
if get_domain(driver) == "account.microsoft.com":
|
if get_domain(driver) == "account.microsoft.com":
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
input(elm_id)
|
|
||||||
driver.find_element(By.ID, elm_id).click()
|
driver.find_element(By.ID, elm_id).click()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
debug(e)
|
debug(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user