jeudi 14 février 2019

Find checkboxes with the attribute checked with xpath

I have a list of checkboxes and I need to find the checkboxes that have the attribute "checked". Below is how my check box element looks,

<input type="checkbox" class="u-display--inline-block u-margin-right--small" checked="">

How can I find this with xpath? I cannot use //input[@type='checkbox' and @checked='true')] because i don't have a checked value true attribute. Any advice would be much appreciated.




Aucun commentaire:

Enregistrer un commentaire