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;
}
Aggregations