Checks if the given element is enabled (as indicated by the 'disabled' attribute).

Usage

Example

this.demoTest = function (browser) {
  browser.assert.enabled('.should_be_enabled');
  browser.assert.enabled({selector: '.should_be_enabled'});
  browser.assert.enabled({selector: '.should_be_enabled', suppressNotFoundErrors: true});
};

Parameters

Name Type description
definition string | object

The selector (CSS / Xpath) used to locate the element. Can either be a string or an object which specifies element properties.

msg
Optional
string

Optional log message to display in the output. If missing, one is displayed by default.