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.

/
[crayon-5412c8c282089058071876/]

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

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>
 
Train Answered on September 12, 2014.
Add Comment

Your Answer

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