From 5ce263aba0a127726c7ea097c1e5ed382bd4bcee Mon Sep 17 00:00:00 2001 From: piair338 <74496300+piair338@users.noreply.github.com> Date: Fri, 24 Dec 2021 21:10:45 +0100 Subject: [PATCH] fixed some point log --- V4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V4.py b/V4.py index 328cef1..50e77c1 100644 --- a/V4.py +++ b/V4.py @@ -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]