Index: ssts-web/src/test/java/test/forgon/disinfectsystem/selenium3/page/userecord/UseRecordPage.java =================================================================== diff -u -r35665 -r35670 --- ssts-web/src/test/java/test/forgon/disinfectsystem/selenium3/page/userecord/UseRecordPage.java (.../UseRecordPage.java) (revision 35665) +++ ssts-web/src/test/java/test/forgon/disinfectsystem/selenium3/page/userecord/UseRecordPage.java (.../UseRecordPage.java) (revision 35670) @@ -25,12 +25,11 @@ private By operationTime = By.xpath("//*[@id='operationTime']/../img");//手术时间 private By operationTimeTodayBtn = By.xpath("//button[text()='今天']");//时间控件的今天按钮 private By visitTimes = By.id("visitId");//手术次数 - private By specialInfection = By.xpath("/html/body/div[7]/div[2]/div[1]/div/div/div/div/div[2]/div[1]/div/div/div/form/fieldset[1]/div/div/div/div[28]/div/div/div/div[1]/div/img") ;//特殊感染类型 - //By.id("specialInfection") + private By specialInfection = By.xpath("//div[@id='x-form-el-specialInfection']/div/img"); private By remark = By.id("remark");//备注 private By scanBarcode = By.id("tempBarcode");//扫描条码框 private By saveBtn = By.xpath("//button[text()='保存']");//保存按钮 - private By confirmBtn = By.xpath("//button[text()='是']");//确认提交按钮 + private By confirmBtn = By.xpath("//button[text()='是']//div//input/img");//确认提交按钮 private By reviewAndGenerateApplicationBtn = By.xpath("//button[text()='审核并生成申请单']");//审核并生成申请单按钮 private By reviewAndGenerateApplicationBtnInUseRecordForm = By.xpath("//*[@id='useRecordForm']//button[text()='审核并生成申请单']");//使用记录表单中的审核并生成申请单按钮 /**