|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.webtests.table.HtmlTable
public class HtmlTable
Represents a HTML table found on a page in a test. This is basically a wrapper around the low-level WebTable.
WebTable
Nested Class Summary | |
---|---|
class |
HtmlTable.Row
|
Constructor Summary | |
---|---|
HtmlTable(com.meterware.httpunit.WebTable webTable)
|
Method Summary | |
---|---|
boolean |
doesCellHaveText(int row,
int col,
String text)
Method that checks if a particular table cell contains the text specified. |
HtmlTable.Row |
findRowWhereCellEquals(int columnIndex,
String cellValue)
Finds the first row in this HtmlTable where the text in the given column equals cellValue . |
HtmlTable.Row |
findRowWhereCellStartsWith(int columnIndex,
String prefix)
Finds the first row in this HtmlTable where the text in the given column starts with prefix . |
List<String> |
getHeadingList()
|
HtmlTable.Row |
getRow(int rowIndex)
|
int |
getRowCount()
|
List<HtmlTable.Row> |
getRows()
|
static HtmlTable |
newHtmlTable(net.sourceforge.jwebunit.WebTester tester,
String tableID)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlTable(com.meterware.httpunit.WebTable webTable)
Method Detail |
---|
public static HtmlTable newHtmlTable(net.sourceforge.jwebunit.WebTester tester, String tableID)
public HtmlTable.Row getRow(int rowIndex)
public List<HtmlTable.Row> getRows()
public HtmlTable.Row findRowWhereCellEquals(int columnIndex, String cellValue)
cellValue
.
Note that we trim the whitespace from the beginning and end of the cell value.
columnIndex
- Index of the column that we are looking in for the given text.cellValue
- The text we expect the cell to contain.
public HtmlTable.Row findRowWhereCellStartsWith(int columnIndex, String prefix)
prefix
.
Note that we trim the whitespace from the beginning and end of the cell value.
columnIndex
- Index of the column that we are looking in for the given prefix.prefix
- The prefix.
public boolean doesCellHaveText(int row, int col, String text)
row
- the row indexcol
- the column indextext
- the text to check for
public int getRowCount()
public List<String> getHeadingList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |