RE: How to select multiple check boxes at a time?
Iam trying to automate the mutiple selection of check boxes along with the drop down. Am able to print all the check box values and also the required check boxes but not able to select the required check boxes. please review the below code and help me.
Your code looks fine to me and in case if you are not getting any exception then it can be a selenium Submit() issue. I would suggest you to try click() as well.
If your this statement is working then definitely there is some problem in clicking action.
System.out.println(“one of the brand matched at index:”+j);
There are different implementations of checkboxes. Sometimes it works on clicking on the text against the check box but sometimes a check box is needed to click particularly on check box. Hope you got my point. Maybe you are trying to click on overall element. Try clicking particularly on the box.
Send us the html code also for the check box implementation.