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();