【问题标题】:unknown error: Elemen is not clickable at point (1327, 310). Other element would receive the click:未知错误:元素在点 (1327, 310) 处不可点击。其他元素会收到点击:
【发布时间】:2018-03-20 05:30:12
【问题描述】:

我收到这个错误:

unknown error: Element is not clickable at point (1327, 310). Other element would receive the click

我使用的是 chrome 浏览器版本 65.0.3325.162 (Official Build) (64-bit) ,ChromeDriver 2.36,我的 selenium jar 是 Selenium Standalone Server 3.11.0。

【问题讨论】:

标签: selenium selenium-chromedriver


【解决方案1】:

你可以使用下面的方法来避免这种情况,

Actions action = new Actions(driver);
action.moveToElement("element name").click().perform(); 

【讨论】:

  • 从问题中可用的信息来看,尚不清楚错误的原因是什么。所以这个答案可以是一个解决方案,也可以不是。
  • 其实我想点击一个“编辑”按钮。当我在 Firefox 浏览器中运行我的测试时,它按照脚本运行,但是当使用 chrome 时它显示未知错误。
  • 你可以试试上面的操作方法,如果定位器是真的,它会工作,因为它在Firefox中工作。
  • 是的,将 thread.sleep() 放在操作类之前。谢谢:)
猜你喜欢
  • 2018-03-16
  • 2016-12-19
  • 2015-01-12
  • 1970-01-01
  • 2016-06-08
  • 2023-03-19
  • 2017-04-16
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多