我想单击页面顶部的按钮。我使用CSS选择器,它在我当地的eclipse中运行它时工作得很好。但是当我尝试运行它时在本地机器上的Jenkins服务器上,它失败,说元素不可点击。 当我在Jenkins上看到失败测试的截图时,我发现头部与我想单击的按钮重叠。 我已经尝试了几乎所有使用XPath,CSS,移动到元素,移动鼠标。 但仍然无法修复它,有人请帮忙。元素在点上不可点击。其他元素将收到点击:
我特林单击添加buttoun
org.openqa.selenium.WebDriverException: Element is not clickable at point (775.25, 10.166671752929688). Other element would receive the click: <div class="globalHeader-UtilTop"></div>
Command duration or timeout: 69 milliseconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host', ip: '', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_80'
<div class="Componet-intels**strong text**-Container">
<div class="Componet-intels-Container-Header">
<div class="Componet-intels-Container-Content">
<div class="Componet-intels-Container-Content-Row">
<span class="Componet-intels-Item"> Item # </span>
<span class="Componet-intels-Text-Item">
<span class="Componet-intels-Lable-Quantity"> Qty: </span>
<span class="Componet-intels-Text-Quantity">
<span class="Componet-intels-Button">
**<input class="Componet-intelsButtonIcon" type="button" value="Add">**
</span>
</div>
没有一些HTML预览/硒代码很难帮助 – Dekel
@Dekel更新了帖子。感谢您的建议。 – Samantha
''元素,我使用'.submit()'而不是'.click()'方法修复了类似的问题。 – jfs