From b0c6a939517a4eea6d4fef143df43d775640bfd6 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 29 Mar 2023 23:24:14 +0200 Subject: [PATCH] bizarre l'id --- V5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V5.py b/V5.py index aa989e8..b7b4297 100755 --- a/V5.py +++ b/V5.py @@ -297,8 +297,8 @@ def all_cards(): def top_cards(): for _ in range(10): - try : - driver.find_element(By.ID, "/html/body/div/div/div[3]/div[1]/div/div[1]/div[2]").click() + try : + driver.find_element(By.XPATH, "/html/body/div/div/div[3]/div[1]/div/div[1]/div[2]").click() close_tab(driver.window_handles[1]) except Exception as e: print(e)