bizarre l'id

This commit is contained in:
piair 2023-03-29 23:24:14 +02:00
parent 012e923ab5
commit b0c6a93951
1 changed files with 2 additions and 2 deletions

2
V5.py
View File

@ -298,7 +298,7 @@ def all_cards():
def top_cards(): def top_cards():
for _ in range(10): for _ in range(10):
try : try :
driver.find_element(By.ID, "/html/body/div/div/div[3]/div[1]/div/div[1]/div[2]").click() 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]) close_tab(driver.window_handles[1])
except Exception as e: except Exception as e:
print(e) print(e)