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.
Thanks for the reply.
yes the below statement is working fine
System.out.println(“one of the brand matched at index:”+j);
I tried both by clicking on text and also by clicking on check box with xpath as i commented it in the code(with index value).
Here is the html code for first check box
<ul id="brand" class="facets scroll" nofilter="" displaytype="" keepcollapsed="" valuelimit=""> <li class="facet " title="Nike"> <a class="active "> <input class="facetoption" type="checkbox" value="facets.brand%5B%5D=Nike" autocomplete="off"> <span class="title fk-inline-block lmargin5" original="Nike">Nike</span> </a> </li>