Docs (4.0.0)
class TestOutputElement method

querySelect

Returns all (nested) elements for which the provided callback returns true.

querySelect(f: (elt: TestOutputElement) => boolean | undefined): TestOutputElement[]

Parameters

  • f — A callback function that’s called for each element in the tree, starting with the content of this element.

Return value

A list of all elements for which the callback returned a true value.

Related