Mahbub Rahman Mahbub Rahman - 1 year ago 101
Groovy Question

Spock: How to clear checkbox if already checked

How to uncheck a checkbox using Navigator object?
I have

def checkboxes = $("input",class:"targetMltChk", name:"facility")

which is a group of checkboxes and some of them are checked. I want to uncheck all of them.

I tried the below:

println it = false

Answer Source

Have you tried:


I believe that should uncheck them all...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download