code is fine.
[quote:1apbshpz]If user wants to select more than one check box, how to deal with it? [/quote:1apbshpz]
i don't have the code but
1.)you have to use an array to store the strings you want to check.
2.) then put another for loop outside like this
[color=#FF0000:1apbshpz]for(int i=0;i<array.size;i++){[/color:1apbshpz]
for(Webelement a: val){
if(equals ignore case){
click;
break;
}
}
}