selenium 报错“Element is not clickable at point”

1、报错:selenium.common.exceptions.WebDriverException: Message: unknown error: Element <span>...</span> is not clickable at point (310, 167). Other element would receive the click: <button data-v-1066c347="" type="button" class="ant-btn ant-btn-primary">...</button>

2、意思是:无法点击这个元素,另外一个button元素接收了这个点击

3、解决方法:

源html文件:

 将上述的定位地址改为如下:

 ok了

猜你喜欢

转载自www.cnblogs.com/yuer02/p/12580651.html