selenium报错:is not clickable at point (1214, 124). Other element would receive the clickd

    定位元素没有问题,但是执行脚本时候,循环第二遍时候,就报错is not clickable at point (1214, 124). Other element would receive the click。

  具体错误:selenium.common.exceptions.WebDriverException: Message: unknown error: Element <img src="../images/tianjia_btn_pre.png" id="add" ng-click="showAddUserDialog()" ng-mouseover="changeImage('add','../images/tianjia_btn.png')" ng-mouseout="changeImage('add','../images/tianjia_btn_pre.png')"> is not clickable at point (1214, 124). Other element would receive the click: <div class="modal fade in" role="dialog" id="myModal" aria-hidden="true" style="display: block; padding-right: 17px;">...</div>

   通过错误提示,应该是在循环第二遍点击添加按钮时,被其他元素接受了鼠标单击,也就是被其他元素遮挡,所以在循环点击之前,稍作sleep休眠即可。

  • 5
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值