1. 程式人生 > >webdriver 報錯:Element is not clickable at point (993, 61). Other element would receive the click

webdriver 報錯:Element is not clickable at point (993, 61). Other element would receive the click

今天跑指令碼發現出現了一個報錯:Element is not clickable at point (993, 61). Other element would receive the click

分析原因,首先肯定不是因為頁面元素不存在而無法點選。

再看了一下target-report中的對應日誌,發現是執行到click的時候出現的:at com.xiami.hongcha.util.ui.ElementUtil.click(ElementUtil.java:21)

實際上這個頁面元素是存在的,而是被另外一個彈層擋住了。