Я пытаюсь выбросить эту страницу:
https://www.ultimatetennisstatistics.com/tournamentEvent?tournamentEventId=4073
И я хочу нажимать на каждый синий значок статистики (есть один для каждого матча турнира)
Это мой код:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
path="C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(path)
URL = "https://www.ultimatetennisstatistics.com/tournamentEvent?tournamentEventId=4073"
driver.get(URL)
driver.implicitly_wait(10)
cookies = driver.find_element_by_id("cookiesNotification")
cookies.click()
# Trying to click the cookies
element = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "matchStats-171140")))
element.click()
Это ответ, который я получаю:
ElementClickInterceptedException: element click intercepted: Element <a...id="matchStats-171140" href="#" class="btn btn-info btn-xxs glyphicon glyphicon-stats" onclick="showMatchStats(171140, event, false)" title="Match Statistics"> </a> is not clickable at point (880, 566). Other element would receive the click: <div id="cookiesNotification" style="position: fixed; left: 0px; bottom: 0px; width: 100%; z-index: 100; text-align: center; background-color: indigo; color: wheat; opacity: 0.9; padding: 10px;">...</div>
Я пытался нажать кнопку cookie, но это не помогло не работает ...
Результат, который я хочу, например, нажав на финал, должен выглядеть как this
Кто-нибудь может мне помочь?
Спасибо