コード例 #1
0
 public void verifyHasErrorMessage(String field, String message) throws Exception {
   ElementStub formItemOfField =
       browser.textbox(Regex.matches("\\[" + field + "\\]")).parentNode().parentNode();
   assertThat(
       browser.div(Regex.matches("form_error")).in(formItemOfField).getText().trim(),
       Is.is(message));
 }
コード例 #2
0
 @com.thoughtworks.gauge.Step("Delete material with name <materialName>")
 public void deleteMaterialWithName(String materialName) throws Exception {
   ElementStub materialRow = getMaterialRowForMaterialName(materialName);
   browser.span(Regex.matches("icon_remove")).in(materialRow).click();
   proceedWithConfirmPrompt();
 }
コード例 #3
0
 @com.thoughtworks.gauge.Step("Click save - Already on Add Job Popup")
 public void clickSave() throws Exception {
   browser.submit(Regex.matches("finish submit")).click();
 }