fixed some point log

This commit is contained in:
piair338 2021-12-24 21:10:45 +01:00
parent bb590d1b6c
commit 5ce263aba0

2
V4.py
View File

@ -622,7 +622,7 @@ def LogPoint(account="unknown"): #log des points sur discord
elem = driver.find_element(By.CSS_SELECTOR, '[title="Microsoft Rewards"]')
elem.click()
driver.switch_to.window(driver.window_handles[1])
driver.switch_to.window(driver.window_handles[len(driver.window_handles) - 1])
CustomSleep(uniform(10,20))
try :
point = search("availablePoints\":([\d]+)",driver.page_source)[1]