我试图用下面的python脚本点击列表项。
from splinter import Browser
from bs4 import BeautifulSoup as bs
url ='https://astrogeology.usgs.gov/search/results?q=hemisphere+enhanced&k1=target&v1=Mars'
browser.visit(url)
browser.find_by_css("a.product-item").click()这给了我以下信息的WebDriverException。有什么帮助吗?
消息:未知错误:元素
<a href="/search/map/Mars/Viking/cerberus_enhanced" class="itemLink product-item">...</a>在点(54,228)不可点击。其他元素将收到单击:<section id="results-accordian" class="block">...</section>
发布于 2018-02-22 00:09:47
我是新来的,但当我尝试您的代码并得到相同的错误。我看了一下dev工具,似乎元素的位置不正确,因此混淆了selenium。
这是五月help
https://stackoverflow.com/questions/48799913
复制相似问题