【发布时间】:2020-06-10 23:12:05
【问题描述】:
我正在尝试找到一个按钮,其中包含快速移动作为内容。
<li>
<a href="javascript:void(0);" class="active">
94 Quick Move-In Homes
<span class="len-tip-item bottom">
<i class="far fa-info-circle"></i>
<span class="len-tip-box" style="display: none;">
An inventory home that is either under construction or completed.
</span></span></a></li>
我的代码如下所示。
driver.implicitly_wait(30)
python_button = driver.find_element_by_xpath("//a[contains(., 'Move-In')]")
python_button.click() #click link
我不确定为什么会出现此错误: ElementClickInterceptedException:消息:元素在点 (1257,736) 处不可点击,因为另一个元素遮住了它
【问题讨论】:
-
这是整个错误信息吗?
-
@AMC 第一个链接有帮助。非常感谢!!!
标签: python selenium selenium-webdriver web-scraping beautifulsoup