List<String> columnEntries = new ArrayList<String>();
List<WebElement> column = getTable().getColumn(columnName);
for (WebElement cell : column) {
if (cell.getText().equals(value)) {
// Get the Subject element in the same row and look inside for a link.
WebElement link = getUtil().findElementsWithoutWaiting(getDriver(),
getTable().getColumn("Subject").get(column.indexOf(cell)), By.tagName("a")).get(0);
link.click();
return null;
}
columnEntries.add(cell.getText());
}
throw new WebDriverException("Could not find message with " + column + " equal to "