Skip to content

@serenity-is/corelib / ValidationHelper / validateElement

Function: validateElement()

validateElement(elem): void

Defined in: src/compat/validation.ts:161

Validates a single element using its associated Validator. No-ops if no validator is attached to the element's form.

Parameters

elem

The element (or array-like wrapper) to validate.

HTMLElement | ArrayLike<HTMLElement>

Returns

void