Index: ssts-web/src/test/java/test/forgon/disinfectsystem/selenium/Delivery.java =================================================================== diff -u -r26436 -r26503 --- ssts-web/src/test/java/test/forgon/disinfectsystem/selenium/Delivery.java (.../Delivery.java) (revision 26436) +++ ssts-web/src/test/java/test/forgon/disinfectsystem/selenium/Delivery.java (.../Delivery.java) (revision 26503) @@ -319,7 +319,8 @@ } //取发货物品表格的第一列(即条码列),若为一次性物品条码,则将其放进Utils.disposableGoodsBatchBarcodesForInvoice中 - List sendOutGoodsTables = Utils.driver.findElements(By.xpath("//*[@id='sendOutGoods']/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]//tbody")); + WebElement sendOutGoodsTablesDiv = Utils.driver.findElement(By.xpath("//*[@id='sendOutGoods']/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]")); + List sendOutGoodsTables = sendOutGoodsTablesDiv.findElements(By.tagName("tbody")); if(sendOutGoodsTables!=null){ Utils.disposableGoodsBatchBarcodesForInvoice.clear(); for(WebElement table : sendOutGoodsTables){