Hi,
I'm trying to test for the state of the disabled attribute on an input.
.assert.attributeEquals('.an-input-classname', 'disabled', true) - this works
.assert.attributeEquals('.an-input-classname', 'disabled', false) - this doesn't work
This appears to be because the attribute is not present when the input is not disabled
Please advice if my approach is wrong, or is this a feature that can be requested.
Thanks
Darren
A solution to this could be:
.getAttribute('.an-input-classname', 'disabled', function(result) {this.assert.equal(result.value, null);})
This doesn't appear to be a problem caused by Nightwatch.
Most helpful comment
A solution to this could be:
.getAttribute('.an-input-classname', 'disabled', function(result) {this.assert.equal(result.value, null);})