// creation
updateUI(new RequestHandler() {
@Override
public void onRequest() {
final PGrid grid1 = new PGrid(3, 4);
grid1.ensureDebugId("grid1");
PRootPanel.get().add(grid1);
register(grid1);
}
});
final WebElement grid1 = findElementById("grid1");
final List<WebElement> rows = grid1.findElements(By.tagName("tr"));
Assert.assertEquals(3, rows.size());
final List<WebElement> cells = grid1.findElements(By.tagName("td"));
Assert.assertEquals(12, cells.size());
}