enriquebravo
4 years agoContributor
Retrieve the value of checkbox linked to a label
I am testing a web application that has a Remember me checkbox. I would like to the script to set the value of the checkbox to true every time it runs, however the checkbox true/false value cannot be read as TC identified the checkbox and the label associated a one object identified by a "//label[contains(@class, 'checked')]" selector.
Is there anyway I could interact with the checkbox instead of the label? The spy is unable to identify the checkbox.
Thanks.