Debugging “Element is not clickable at point” error

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

    You can also use JavaScript click and scrolling would be not required then.

    IJavaScriptExecutor ex = (IJavaScriptExecutor)Driver;
    ex.ExecuteScript("arguments[0].click();", elementToClick);
    

提交回复
热议问题