How to determine if a checkbox is check or not through xpath
Currently I am trying :
//input[@type=\'checkbox\' and @checked=\'true\')]
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..