src/driver/selector.js
function _fillInputCheckbox(element, value, next) {
        var onIsSelected = chainAndErrorCallback.call(this, function (selected, next) {
            //ensure boolean
            value = !!value;
            if (value === selected) {
                // nothing to do
                return next();
            }
            element.click(next);
        }, next);
        element.isSelected(onIsSelected);
    }
function _fillInputCheckbox(element, value, next) {
        var onIsSelected = chainAndErrorCallback.call(this, function (selected, next) {
            //ensure boolean
            value = !!value;
            if (value === selected) {
                // nothing to do
                return next();
            }
            element.click(next);
        }, next);
        element.isSelected(onIsSelected);
    }
function _fillInputCheckbox ( element , value , next ) { var onIsSelected = chainAndErrorCallback . call ( this , function ( selected , next ) { //ensure boolean value = ! ! value ; if ( value === selected ) { // nothing to do return next ( ) ; } element . click ( next ) ; } , next ) ; element . isSelected ( onIsSelected ) ; }
check or uncheck given checkbox
check or uncheck given checkbox