Documentation

querySelectFirst()

Returns the first (nested) element for which the provided callback returns true.

querySelectFirst(
f: (elt: TestOutputElement) => boolean | undefined,
): TestOutputElement | undefined;

Parameters

Return value

The first element for which the callback returned a true value, or undefined.

Related