How to determine if a checkbox is check or not through xpath
Currently I am trying :
//input[@type=\'checkbox\' and @checked=\'true\')]
However, there are solution without using css classes and selectors.
Use
//input[@type='checkbox' and @checked]
or
//input[@type='checkbox' and not(@checked)]
instead of
//input[@type='checkbox' and @checked='xyz']