com.meterware.httpunit
public class WebTable extends HTMLElementBase
Field Summary | |
---|---|
static HTMLElementPredicate | MATCH_FIRST_NONBLANK_CELL Predicate to match the complete text of a table's first non-blank cell. |
static HTMLElementPredicate | MATCH_FIRST_NONBLANK_CELL_PREFIX Predicate to match a prefix of a table's first non-blank cell. |
static HTMLElementPredicate | MATCH_ID Predicate to match a table's ID. |
static HTMLElementPredicate | MATCH_SUMMARY Predicate to match a table's summary attribute. |
Method Summary | |
---|---|
String[][] | asText()
Returns a rendering of this table with all cells converted to text.
|
String | getCellAsText(int row, int column)
Returns the contents of the specified table cell as text.
|
int | getColumnCount()
Returns the number of columns in the table.
|
protected ScriptableDelegate | getParentDelegate() |
int | getRowCount()
Returns the number of rows in the table.
|
TableRow[] | getRows()
Returns an array of rows for this table. |
String | getSummary()
Returns the summary attribute associated with this table.
|
TableCell | getTableCell(int row, int column)
Returns the contents of the specified table cell as text.
|
TableCell | getTableCellWithID(String id)
Returns the contents of the specified table cell with a given ID |
protected ScriptableDelegate | newScriptable() |
void | purgeEmptyCells()
Removes all rows and all columns from this table which have no visible text in them.
|
String | toString() |
Throws: IndexOutOfBoundsException if the specified cell numbers are not valid
Throws: IndexOutOfBoundsException if the specified cell numbers are not valid
Returns: TableCell with given ID or null if ID is not found.