码上敲享录 > 互联网笔记 > element click intercepted: Element xxx is not clickable at point (547, 874). Other element would rec

element click intercepted: Element xxx is not clickable at point (547, 874). Other element would rec

上一章章节目录下一章 2021-02-02已有1166人阅读 评论(0)

element click intercepted: Element xxx is not clickable at point (547, 874). Other element would receive the click:


解决方法:

webmagic结合selenium使用时模拟点击click事件时报错信息如下所示:

10:53:29.636 [pool-1-thread-1] ERROR us.codecraft.webmagic.Spider - process request Request{url='http://zb.yfb.qianlima.com/yfbsemsite/mesinfo/zbpglist', method='null', extras=null, priority=0, headers={}, cookies={}} error

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <a href="javascript:" onclick="page(...,15,'');">5</a> is not clickable at point (547, 874). Other element would receive the click: <body>...</body>


标签明明存在却点击不到,后来发现是弹出来谷歌浏览器不是全屏的,所以无法点击到那个按钮,所以加以下配置让浏览器全屏:

driver.manage().window().maximize();


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交