the verify() method in CellTable wasn't the problem; the element really seems to be missing in the central build; need to find out why

This commit is contained in:
Axel Uhl committed 2014-01-26 18:58:02 +01:00
1 parent 83f4eefa26
commit f1dfb05b3f
1 file changed
+9 -1
@@ -69,10 +69,18 @@ public class CellTable extends PageObject {
return rows;
}
return Collections.emptyList();
}
@Override
protected void verify() {
// TODO: Verify that the context represents a GWT CellTable
String tagName = ((WebElement) this.context).getTagName();
if (!tagName.equalsIgnoreCase("table")) {
throw new IllegalArgumentException("WebElement does not represent a table");
}
}
private List<WebElement> findHeaders() {
return this.context.findElements(By.tagName("th"));
}