.toBeDisabled()
Asserts disabled status of element.
Usage
expect(value).toBeDisabled()
Returns
Promise
: A promise that resolves if the assertion is successful.
Support
Platform | Supported |
---|---|
iOS | Yes |
Android | Yes |
Web | Yes |
Examples
Check if the button is disabled:
const { element, by, expect } = require("appdriver");
(async () => {
const $button = await element(by.label("button"));
return expect($button).toBeDisabled();
})();