Automation Appium iOS解除警报仅在连接重置错误的情况下首次失败

Automation Appium iOS解除警报仅在连接重置错误的情况下首次失败,automation,appium,appium-ios,Automation,Appium,Appium Ios,我正在测试一个应用程序,在该应用程序中,我必须取消显示的错误电子邮件格式的警报。这个案例是第一次失败,如果我手动撤销,其他所有无效案例的测试案例和弹出的撤销都会生效 我正在使用 public void dismissAlert() { WebDriverWait wait = new WebDriverWait(appDriver, 1000); wait.until(ExpectedConditions.alertIsPresent()); appDriver.swit

我正在测试一个应用程序,在该应用程序中,我必须取消显示的错误电子邮件格式的警报。这个案例是第一次失败,如果我手动撤销,其他所有无效案例的测试案例和弹出的撤销都会生效

我正在使用

public void dismissAlert() {
    WebDriverWait wait = new WebDriverWait(appDriver, 1000);
    wait.until(ExpectedConditions.alertIsPresent());
    appDriver.switchTo().alert().dismiss();

}
appDriver在哪里

protected static AppiumDriver appDriver;
代码(案例)正确执行到此点,然后抛出错误:

   [31morg.openqa.selenium.WebDriverException: java.io.IOException: unexpected end of stream on Connection{0.0.0.0:4723, proxy=DIRECT hostAddress=/0.0.0.0:4723 cipherSuite=none protocol=http/1.1}
  Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:24:21.231Z'
Maven依赖项

<dependency>
        <groupId>io.appium</groupId>
        <artifactId>java-client</artifactId>
        <version>6.0.0</version>
    </dependency>
<dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.13.0</version>
</dependency>
<dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
        <scope>test</scope>
</dependency>

木卫一
java客户端
6.0.0
org.seleniumhq.selenium
硒爪哇
3.13.0
朱尼特
朱尼特
4.12
测试

连接重置错误弹出窗口是系统弹出窗口还是应用弹出窗口?这是iOS警报及其应用内实现。那么应用弹出你解决了吗?是连接重置错误弹出系统弹出还是应用弹出?这是iOS警报及其应用内实现。应用程序弹出你解决了吗?