Index: ssts-selenium-test/src/test/java/test_4_1/Apply.java =================================================================== diff -u -r17825 -r17887 --- ssts-selenium-test/src/test/java/test_4_1/Apply.java (.../Apply.java) (revision 17825) +++ ssts-selenium-test/src/test/java/test_4_1/Apply.java (.../Apply.java) (revision 17887) @@ -647,8 +647,8 @@ WebElement element = Utils.retryingFindAndClick(By .cssSelector("input[name='foreignTousseName1']")); - Thread.sleep(1000); - element.sendKeys(name); + Utils.retryingFindAndSendKeys(By + .cssSelector("input[name='foreignTousseName1']"), name); Utils.retryingFindAndClick(By .xpath("//div/ul/li[contains(text(), '" + name + "')]")); @@ -724,12 +724,17 @@ By.cssSelector("input[name='leaseTousseName']"), Utils.settings.getJSONObject("一级供应室器械包2").getString("名称")); Utils.retryingFindAndSendKeys(By.id("applicantAmount"), "2"); + + // TODO:下面2行代码的用途是什么? Utils.retryingFindAndSendKeys( By.cssSelector("input[name='leaseTousseName']"), "\n"); Utils.retryingFindAndSendKeys(By.id("applicantAmount"), "\n"); + Utils.retryingFindAndClick(By .xpath("//button[contains(text(), '提交')]")); // 定位到弹出对话框的按钮 + + // 可能代码有问题,双重wait了。。。。。。。。。。。。。。。 Wait wait = new FluentWait(Utils.driver) .withTimeout(5000, TimeUnit.MILLISECONDS) .pollingEvery(250, TimeUnit.MILLISECONDS)