fixed some point log

This commit is contained in:
piair338 2021-12-24 21:10:45 +01:00
parent bb590d1b6c
commit 5ce263aba0
1 changed files with 1 additions and 1 deletions

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 = driver.find_element(By.CSS_SELECTOR, '[title="Microsoft Rewards"]')
elem.click() 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)) CustomSleep(uniform(10,20))
try : try :
point = search("availablePoints\":([\d]+)",driver.page_source)[1] point = search("availablePoints\":([\d]+)",driver.page_source)[1]