Index: ssts-selenium-test/src/test/java/test_4_1/apply/chain/ApplyHandler.java =================================================================== diff -u -r17833 -r17839 --- ssts-selenium-test/src/test/java/test_4_1/apply/chain/ApplyHandler.java (.../ApplyHandler.java) (revision 17833) +++ ssts-selenium-test/src/test/java/test_4_1/apply/chain/ApplyHandler.java (.../ApplyHandler.java) (revision 17839) @@ -29,11 +29,10 @@ */ protected void doChain(String icon) { ApplyHandler handler = this.getHandler(); - if (handler != null) { - handler.handleApply(icon); - return; + if (handler == null) { + throw new RuntimeException("找不到要点击的图标:" + icon); } - throw new RuntimeException("找不到要点击的图标:" + icon); + handler.handleApply(icon); } /** Index: ssts-selenium-test/src/test/java/test_4_1/apply/helper/ApplyHelper.java =================================================================== diff -u -r17838 -r17839 --- ssts-selenium-test/src/test/java/test_4_1/apply/helper/ApplyHelper.java (.../ApplyHelper.java) (revision 17838) +++ ssts-selenium-test/src/test/java/test_4_1/apply/helper/ApplyHelper.java (.../ApplyHelper.java) (revision 17839) @@ -209,7 +209,12 @@ */ public static void waitSubmit() { //等待直到出现提示框才结束,不然数据会保存不了 - Utils.findByAwait(By.id("extTipMsg")); + WebElement extTipMsg = Utils.findByAwait(By.id("extTipMsg")); + String result = extTipMsg.getText(); + if (!result.contains("成功")) { + logger.error("提交表单失败,提交返回结果是:{}", result); + throw new RuntimeException("提交失败!"); + } } /** Index: ssts-selenium-test/src/test/java/test_4_1/apply/chain/FillFormHandler.java =================================================================== diff -u -r17833 -r17839 --- ssts-selenium-test/src/test/java/test_4_1/apply/chain/FillFormHandler.java (.../FillFormHandler.java) (revision 17833) +++ ssts-selenium-test/src/test/java/test_4_1/apply/chain/FillFormHandler.java (.../FillFormHandler.java) (revision 17839) @@ -33,11 +33,10 @@ */ protected void doChain(ApplyGoodBo applyGoodBo, WebElement frame) { FillFormHandler handler = this.getHandler(); - if (handler != null) { - handler.fillApply(applyGoodBo, frame); - return; + if (handler == null) { + throw new RuntimeException("找不到对应的按钮!" + applyGoodBo.getBtn()); } - throw new RuntimeException("找不到对应的按钮!" + applyGoodBo.getBtn()); + handler.fillApply(applyGoodBo, frame); } /**