public void waitForAjaxToFinish() {
long currentTime = System.currentTimeMillis();
while (System.currentTimeMillis() - currentTime < 40000) {
boolean ajaxFinished = (Boolean) ((JavascriptExecutor) driver) /// в этой строке ошибка
.executeScript("return !!jQuery && jQuery.active == 0");
if (ajaxFinished)
return;
}
throw new AssertionError("Ajax haven't finished its job in 40 sec");
}
на этом методе падает тест с такой ошибкой кто нить встречался с таким?
INFO: I/O exception (java.net.SocketException) caught when processing request to {}->http://localhost:44505: No buffer space available (maximum connections reached?): connect