use of com.gargoylesoftware.htmlunit.html.HtmlTable in project selenium_java by sergueik.
the class JenkinsConfigurationPage method getUserPermissionRowNumber.
public int getUserPermissionRowNumber(final String userName) {
int retval = -1;
final HtmlTable securityMatrix = getSecurityMatrix();
for (int rowCtr = 0; rowCtr < securityMatrix.getRowCount(); rowCtr++) {
final HtmlTableRow row = securityMatrix.getRow(rowCtr);
if (row.getAttribute("name").equalsIgnoreCase(userName)) {
retval = rowCtr;
break;
}
}
return retval;
}
Aggregations