Search in sources :

Example 6 with HtmlTableCell

use of com.gargoylesoftware.htmlunit.html.HtmlTableCell in project selenium_java by sergueik.

the class JenkinsConfigurationPage method getAuditReportsPermissionColumnNumber.

public int getAuditReportsPermissionColumnNumber() {
    int retval = -1;
    // the auth matrix' header is actually the first row
    final HtmlTableRow firstRow = getSecurityMatrix().getRow(0);
    for (int cellCtr = 0; cellCtr < firstRow.getCells().size(); cellCtr++) {
        final HtmlTableCell cell = firstRow.getCell(cellCtr);
        if (cell.getTextContent().equalsIgnoreCase("Audit Reports")) {
            retval = cellCtr;
            break;
        }
    }
    return retval;
}
Also used : HtmlTableRow(com.gargoylesoftware.htmlunit.html.HtmlTableRow) HtmlTableCell(com.gargoylesoftware.htmlunit.html.HtmlTableCell)

Aggregations

HtmlTableCell (com.gargoylesoftware.htmlunit.html.HtmlTableCell)6 HtmlAnchor (com.gargoylesoftware.htmlunit.html.HtmlAnchor)1 HtmlElement (com.gargoylesoftware.htmlunit.html.HtmlElement)1 HtmlImage (com.gargoylesoftware.htmlunit.html.HtmlImage)1 HtmlTableRow (com.gargoylesoftware.htmlunit.html.HtmlTableRow)1 Matchers.containsString (org.hamcrest.Matchers.containsString)1