How to determine if a check is checked or not via xpath
I am currently trying:
//input[@type='checkbox' and @checked='true')]
I have several checkboxes with the same identifiers, so I have to select the next checkbox that is not selected / not set.
In particular, I need this for the Selenium IDE
Edit
what I really need is:
|storeXpathCount | //input[@name='xyz' and @checked='checked'] | is_checked |
if "xyz" is checked, the value of is_checked should be 1 else 0
thank
source
share