je comprend plus rien
This commit is contained in:
parent
e03ef1759c
commit
1a44c60202
9
V6.py
9
V6.py
|
@ -471,14 +471,10 @@ def login_part_2(ldriver, cookies = False):
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
ldriver.find_element(By.ID, id).click()
|
ldriver.find_element(By.ID, id).click()
|
||||||
restart = True
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
wait_until_visible(By.CSS_SELECTOR, '[data-bi-id="sh-sharedshell-home"]', 20, ldriver)
|
wait_until_visible(By.CSS_SELECTOR, '[data-bi-id="sh-sharedshell-home"]', 20, ldriver)
|
||||||
ldriver.get("https://www.bing.com/")
|
|
||||||
rgpd_popup(ldriver)
|
|
||||||
ldriver.refresh()
|
|
||||||
rgpd_popup(ldriver)
|
|
||||||
|
|
||||||
|
|
||||||
# login() tries to login to your Microsoft account.
|
# login() tries to login to your Microsoft account.
|
||||||
|
@ -573,7 +569,6 @@ def log_points(account="unknown"):
|
||||||
for id in ["KmsiCheckboxField","iLooksGood", "idSIButton9", "iCancel"]:
|
for id in ["KmsiCheckboxField","iLooksGood", "idSIButton9", "iCancel"]:
|
||||||
try:
|
try:
|
||||||
driver.find_element(By.ID, id).click()
|
driver.find_element(By.ID, id).click()
|
||||||
restart = True
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
wait_until_visible(By.CSS_SELECTOR, 'span[mee-element-ready="$ctrl.loadCounterAnimation()"]', browser=driver)
|
wait_until_visible(By.CSS_SELECTOR, 'span[mee-element-ready="$ctrl.loadCounterAnimation()"]', browser=driver)
|
||||||
|
@ -832,7 +827,7 @@ else :
|
||||||
display = SmartDisplay(size=(1920, 1080))
|
display = SmartDisplay(size=(1920, 1080))
|
||||||
display.start()
|
display.start()
|
||||||
|
|
||||||
webhookFailure.send(f"Starting on this config", username="Check de lancement", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
|
#webhookFailure.send(f"Starting on this config", username="Check de lancement", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
|
||||||
|
|
||||||
if g.dev :
|
if g.dev :
|
||||||
driver = firefox_driver()
|
driver = firefox_driver()
|
||||||
|
|
Loading…
Reference in New Issue