Skip to content

@serenity-is/corelib / getElementReadOnly

Function: getElementReadOnly()

getElementReadOnly(el): boolean | null

Gets readonly state of an element. If the element is null, returns null. It does not check for attached widgets. It returns true if the element has readonly class, disabled attribute (select, radio, checkbox) or readonly attribute (other inputs).

Parameters

el

Element

element

Returns

boolean | null

Defined in

src/base/html.ts:128