Selenium Python-元素点击被拦截

时间:2020-08-07 06:23:19

标签: selenium web-scraping

我正尝试在下一页上单击select a service-Single knowledge testhttps://onlinebusiness.icbc.com/qmaticwebbooking/#/

我认为我按如下所示定位了按钮目标:
<input aria-checked="true" id="da8488da9b5df26d32ca58c6d6a7973bedd5d98ad052d62b468d3b04b080ea25" role="radio" type="radio" name="v-radio-50" value="da8488da9b5df26d32ca58c6d6a7973bedd5d98ad052d62b468d3b04b080ea25">

但是当我尝试使用以下代码单击它时:
driver.find_element_by_css_selector("input[type='radio'][value='da8488da9b5df26d32ca58c6d6a7973bedd5d98ad052d62b468d3b04b080ea25']").click()

我收到以下错误:
ElementClickInterceptedException:消息:拦截了元素点击:元素<input aria-checked="false" id="da8488da9b5df26d32ca58c6d6a7973bedd5d98ad052d62b468d3b04b080ea25" role="radio" type="radio" name="v-radio-50" value="da8488da9b5df26d32ca58c6d6a7973bedd5d98ad052d62b468d3b04b080ea25">在点(219,479)不可点击。其他元素将获得点击:<div class="v-input--selection-controls__ripple"></div> (会话信息:chrome = 84.0.4147.105)

即使运行后它仍然存在 首先driver.find_element_by_class_name('v-input--selection-controls__ripple').click()

我知道周围有很多类似的问题,但是作为Selenium的新手,我没有找到可以为我解决问题的解决方案。我已经坚持了很长时间,非常感谢任何可以帮助的人!

0 个答案:

没有答案
相关问题