Если перехватывать исключение становится легче,
try {
assertTrue(closeAlertAndGetItsText(driver).matches("^Do you really want to delete these records[\\s\\S]$"));
} catch (NoAlertPresentException e) {}
но в Selenium 2.29 все работает и исключение не появляется, что изменилось?
После выхода Selenium 2.30/31 тесты стали падать после выполнения строчки
assertTrue(closeAlertAndGetItsText(driver).matches("^Do you really want to delete these records[\\s\\S]$"));
появляется NoAlertPresentException
в detailMessage "No JavaScript modal dialog is open (WARNING: The server did not provide any stacktrace information)"