Hi,
I am trying to automate sorting and filter functionality. For that I need to take cell values and do the logic, I have some questions for completing that.
Is the below one correct? If so, how to get the number of rows in a table?
public Boolean chkTableFilter(String tblPath, String search){
Boolean filterFlag=false;
int tblRows=0; // how to get?
for (int i = 1; i <= tblRows;){
DomElement items = desktop.<DomElement>findAll(tblPath).get(i);
String itemVal=items.getText();
if(itemVal.equalsIgnoreCase(search)){
filterFlag=true;
}else{
filterFlag=true;
}
}
return filterFlag;
}
-Alice