【发布时间】:2014-11-13 18:28:22
【问题描述】:
我有以下问题。我在 Firefox 和 Chrome 上运行测试。在 Firefox 上测试运行正确,但在 Chrome SauceLabs 上给出一条消息:
unknown error: Element is not clickable at point (717, 657). Other
element would receive the click: <div class="col-md-9 col-sm-12"
style="margin-top:8px;">...</div> (Session info: chrome=36.0.1985.125)
(Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64)
我在两个测试中以相同的方式通过唯一的 css 选择器选择元素:
driver.FindElement(By.CssSelector("button.btn-xs:nth-child(1)")).Click();
有什么想法吗?
【问题讨论】:
-
您是否尝试在点击之前等待元素?
-
超时后同样的行为。
标签: c# google-chrome selenium selenium-webdriver saucelabs