Debugging “Element is not clickable at point” error

后端 未结 30 2174
余生分开走
余生分开走 2020-11-21 23:55

I see this only in Chrome.

The full error message reads:

\"org.openqa.selenium.WebDriverException: Element is not clickable at point (411, 675

30条回答
  •  一个人的身影
    2020-11-22 00:19

    I had the same issue, tried all offered solutions but they did not work for me. eventually I used this:

    JavascriptExecutor js = (JavascriptExecutor) driver;
    js.executeScript("var evt = document.createEvent('MouseEvents');" + "evt.initMouseEvent('click',true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0,null);" + "arguments[0].dispatchEvent(evt);", findElement(element));
    

    Hope this helps

提交回复
热议问题