Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

How to get cell values in a table using Silk 4J

$
0
0

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


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>