未捕获的错误:java.net.socketTimeoutException:无法连接到/192.168.154.1(端口19000)

时间:2018-09-15 08:50:38

标签: react-native expo

我试图使用expo运行react-native,但是每次当我尝试使用expo生成的QR码在android设备中运行expo app时,都会出现类似这样的错误。

WebDriverWait wait = new WebDriverWait(driver, 20);
Actions actions = new Actions(driver);

int clicks = Integer.valueOf(wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("info-wrapper--clicks-text"))).getText());

List<WebElement> charts = wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.cssSelector(".highcharts-series-group rect:not([height='0'])")));

AtomicInteger totalChartClicks = new AtomicInteger();

charts.forEach(webElement -> {
    actions.moveToElement(webElement).perform();
    int amount = Integer.valueOf(driver.findElement(By.cssSelector("div.highcharts-tooltip span:nth-of-type(2)")).getText().replace("Total Clicks ",""));
    totalChartClicks.addAndGet(amount);
});

Assert.assertEquals(totalChartClicks.get(), clicks);

expo error

问题出在哪里,我该如何解决??

1 个答案:

答案 0 :(得分:-1)

也许是Windows防火墙问题。如果是这样,解决方案将类似于that