Question: How to determine if a checkbox is check or not through xpath 

Currently I am trying :

```
//input[@type='checkbox' and @checked='true')]

```

I have multiple checkboxes with same ids so I have to select the next checkbox which is not selected/checked. 

Specifically I need this for Selenium IDE 

**Edit**
what I actually need is sth like :

```
|storeXpathCount | //input[@name='xyz' and @checked='checked'] | is_checked | 

```

if checkbox 'xyz' is checked , is\_checked value should be 1 else 0 

thanks

Answer: 
![enter image description here](https://i.stack.imgur.com/UsWZZ.jpg)

Here `stnewrecord` is class of check-box.
Script will store number of check-box, and according to that loop will follow.
It will check whether check-box is checked or not if not it will check else move to next step.

```
xpath=(//input[@class='stnewrecord'])[${i}]  

```

This is xpath of check-box. 'i' is position, it will increase on each iteration.

Let me know whether its working for you or not..
You can try these one:

```
//*[@type='radio'][@checked='checked']/
//*[@type='radio'][not(@checked='checked')]/

```