这一次,我在点击一个自定义单选按钮时遇到了一个问题:https://www.nebraska.gov/LISSearch/search.cgi
当我单击单选按钮(在本例中为id=radio1的单选按钮)时,我得到一个异常
selenium.common.exceptions.element ClickInterceptedException:消息:元素click intercepted:元素在点(153449)处不可单击。其他元素将收到单击: (会话信息:chrome=80.0.3987.163)
我尝试使用xpath和id单击它,两者都给出了相同的错误。我知道错误是什么——它是不可点击的。我想知道我怎么才能绕过这个事实上是点击单选按钮。我还包括了一个单选按钮的图像,设置如下。
要处理截获的元素异常,uoi可以使用以下代码:
或
注意:添加以下库:
相关问题 更多 >
编程相关推荐