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));
 }
 @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();
 }
 @com.thoughtworks.gauge.Step("Click save - Already on Add Job Popup")
 public void clickSave() throws Exception {
   browser.submit(Regex.matches("finish submit")).click();
 }