我正在尝试单击页面顶部的按钮.我正在使用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>
Run Code Online (Sandbox Code Playgroud) 我有大文本,是String格式.我想知道如何将该String转换为CLOB.我正在使用Spring数据JPA,Spring启动.
我试过用
clob.setString(position, string)
Run Code Online (Sandbox Code Playgroud) @Before
public void quit_if_tagged_scenario_failed(Scenario scenario) {
if (!isTagged(scenario) && prevScenarioFailed)
throw new IllegalStateException("An important scenario has failed! Cucumber wants to quit.");
}
Run Code Online (Sandbox Code Playgroud)
我正在使用这种方法来检查之前的场景是否失败。如果失败,我想跳过该功能文件中的所有场景。所以这里的问题是,如果我正在运行两个功能文件,则功能文件中的最后一个场景失败,下一个功能的第一步也将失败,因为黄瓜上一个场景来自过去的功能文件失败。你知道如何处理这种情况吗?对你的帮助表示感谢。
我有两个@after标签,@ close-browser和@ screenshot.So,现在当我将两个标签用于特征文件时,它首先执行@ close-browser,并且在执行@screenshot方法后失败.有没有办法告诉黄瓜先在方法之后运行@screenshot?
java ×4
cucumber ×3
cucumber-jvm ×2
css ×1
jenkins ×1
junit ×1
selenium ×1
spring ×1
spring-boot ×1