Debugging “Element is not clickable at point” error

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

    I was getting this error when running tests headless with xvfb-run. They were working flawlessly locally. Using chrome, versions of webdriver / chromedriver / chrome / java etc all identical.

    The ‘won’t fix’ bug in chromedriver - GitHub Link pointed out by Tony Lâmpada suggested this may be related to what is / isn't visible on the screen.

    Help message for xvfb-run shows the following:

    -s ARGS   --server-args=ARGS    arguments (other than server number and
                                    "-nolisten tcp") to pass to the Xvfb server
                                    (default: "-screen 0 640x480x8")
    

    Changing the resolution for xvfb made the error go away:

    xvfb-run -s "-screen 0 1280x1024x16" ...
    

提交回复
热议问题