Unable to check the checkbox in GEB
问题 I am trying to check my check box in Geb. I have tried following codes, but no luck $('input', type:'checkbox', id: 'chkTermsConditions', tabindex: '-1').value('true') $(".CheckBoxUI").value('true') Following is the HTML After mouse go over the check box additional text updated (marked in the screen shot) 回答1: You are attempting to check the box which has the attribute with value='true' From the Geb manual: The value of input, select and textarea elements can be retrieved and set with the