System.out.println("=== Inspecting the table node ===");
inspect(table);
// at the time of writing there was only one row
nsIDOMHTMLCollection rows = table.getRows();
nsIDOMHTMLTableRowElement row = this.asTableRow(rows.item(0L));
System.out.println("=== Inspecting the table row node ===");
inspect(row);
System.out.println("=== Listing the menu ===");
nsIDOMNodeList cells = row.getElementsByTagName("th");
for (long i = 0, len = cells.getLength(); i < len; i++) {
nsIDOMHTMLTableCellElement cell = this.asTableCell(cells.item(i));
String text = this.exploreTableCell(cell);
System.out.println("Menu #" + (i+1) + " is " + text);
}