assertNotNull(calendarPopupButton);
page = (HtmlPage) calendarPopupButton.click();
HtmlElement calendarHeaderElement = page.getHtmlElementById("form:calendarHeader");
assertNotNull("form:calendarHeader element missed.", calendarHeaderElement);
HtmlTableDataCell nextTD = null;
List<?> tds = calendarHeaderElement.getByXPath("table/tbody/tr/td");
for (Object td : tds) {
HtmlTableDataCell htdc = (HtmlTableDataCell) td;
if (">".equals(htdc.asText())) {
nextTD = htdc;
}
}
assertNotNull(nextTD);
HtmlElement div = (HtmlElement) nextTD.getChildElements().iterator().next();