Index: ssts-web/src/test/java/test/forgon/disinfectsystem/selenium3/page/returngoods/ReturnGoodsPage.java =================================================================== diff -u -r38042 -r40657 --- ssts-web/src/test/java/test/forgon/disinfectsystem/selenium3/page/returngoods/ReturnGoodsPage.java (.../ReturnGoodsPage.java) (revision 38042) +++ ssts-web/src/test/java/test/forgon/disinfectsystem/selenium3/page/returngoods/ReturnGoodsPage.java (.../ReturnGoodsPage.java) (revision 40657) @@ -29,7 +29,7 @@ */ private By returnPerson = By.id("returnOfPeopleBarcode");//退货人员工号 private By scanBarcode = By.id("barcode2");//扫描条码 - private By saveBtn = By.id("saveBtn");//保存按钮 + private By saveBtn = By.xpath("//button[text()='保存']");//保存按钮 private By confirmBtn = By.xpath("//button[text()='是']");//确认按钮:是 private By pageInfo = By.cssSelector(".x-paging-info");//页码信息,用作断言