querySelectFirst()
Returns the first (nested) element for which the provided callback returns true.
querySelectFirst(
f: (elt: TestOutputElement) => boolean | undefined,
): TestOutputElement | undefined;
Parameters
- f — A callback function that’s called for each element in the tree, starting with the content of this element, until the function returns a true value.
Return value
The first element for which the callback returned a true value, or undefined.
Related
class TestOutputElement
A class that represents a rendered output element.
