Debugging “Element is not clickable at point” error

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

    I made this method based on a comment from Tony Lâmpada's answer. It works very well.

    def scroll_to(element)
      page.execute_script("window.scrollTo(#{element.native.location.x}, #{element.native.location.y})")
    end
    

提交回复
热议问题