Debugging “Element is not clickable at point” error

后端 未结 30 1970
余生分开走
余生分开走 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:36

    I have seen this in the situation when the selenium driven Chrome window was opened too small. The element to be clicked on was out of the viewport and therefore it was failing.

    That sounds logical... real user would have to either resize the window or scroll so that it is possible to see the element and in fact click on it.

    After instructing the selenium driver to set the window size appropriately this issues went away for me. The webdriver API is decribed here.

提交回复
热议问题