RE: How to select multiple check boxes at a time?

Hi all,

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.

RE: How to select multiple check boxes at a time?

Thank you.


Srinivas Train Asked on September 12, 2014 in Selenium WebDriver.
Add Comment
3 Answers

Hi Srinivas,

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.

Lakshay Sharma


Professor Answered on September 12, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.