硒python元素点击被拦截

时间:2020-07-23 12:38:06

标签: python html css selenium webdriver

我想建立一个系统来从“ sofascore.com”进行抓取

        element = WebDriverWait(driver2, 40).until(EC.element_to_be_clickable((By.XPATH, "//div[@class='js-event-list-tournament-events']/a")))
        link_para_partida = driver2.find_elements_by_xpath("//div[@class='js-event-list-tournament-events']/a")[int(floor(aux/2))]
        link_para_partida.click()

that it's return for me this error

selenium.common.exceptions.ElementClickInterceptedException:消息:拦截了元素单击:元素...在点(448,880)不可单击。其他元素将获得点击:

iframe id =“ google_ads_iframe_ / 21866864457 / web-mobile-leaderboard-bottom_0” title =“第三方广告内容” name =“ google_ads_iframe_ / 21866864457 / web-mobile-leaderboard-bottom_0” width =“ 320” height =“ “ 50” scrolling =“ no” marginwidth =“ 0” marginheight =“ 0” frameborder =“ 0” srcdoc =“” style =“ border:0px; vertical-align:bottom;” data-google-container-id =“ 1” data-load-complete =“ true”> / iframe>

I found a clickable element, but its wont click

the HTML is

div class =“ js-event-list-tournament-events”
一个class =“ cell cell--event-list指针list-event js-event js-link js-event-link js-event-8801147 js-event-status-inprogress js-event-home-team-id-101093 js-event-away-team-id-58713 “ href =” / pt / redlicki-mi-arconada / nzysTwP“ data-id =” 8801147“ data-start-timestamp =” 1595505600“

0 个答案:

没有答案
相关问题