Skip to content

@serenity-is/corelib / newBodyDiv

Function: newBodyDiv()

newBodyDiv(): HTMLDivElement

Defined in: src/compat/html-compat.ts:97

Creates a new <div> and appends it to document.body.

Returns

HTMLDivElement

The newly created and appended HTMLDivElement.

Remarks

Compat helper from newBodyDiv; prefer document.createElement + explicit append in new code.