【发布时间】:2021-04-17 20:38:50
【问题描述】:
我正在制作一个网络爬虫以从https://www.nvidia.com/en-us/shop/geforce/?page=1&limit=9&locale=en-us 获取 gpu 库存以获取 30 系列卡,为此我正在使用带有 bs4 和 selenium 的 python。
我想加载更多的购物项目,网站上有这个load more button。所以我抓住了它的类,让它让硒点击它:
driver.find_element_by_class_name("buy-link").click()
但它表示该元素在不可交互的 HTML 中用于按钮
它给我的确切错误是:
Message: element click intercepted: Element <span class="extra_style buy-link" data-color="#76b900" data-secondary-color="#fff" style="visibility: visible; cursor: pointer;" data-mpn-code="NVGFT070">...</span> is not clickable at point (657, 594). Other element would receive the click: <div class="popBg" id="nv-buy-now-model" style="display: block;">...</div>
我不太懂HTML,怎么实现点击这个按钮
【问题讨论】:
标签: python selenium selenium-webdriver web-scraping webdriverwait