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)

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

發佈了28 篇原創文章 · 獲贊 25 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章