Skip to content

API Reference / @gtkx/testing / queryAllByText

Function: queryAllByText()

queryAllByText(container, text, options?): Widget[]

Defined in: queries.d.ts:166

Finds every widget whose rendered text content matches.

Parameters

container

Container

Widget subtree to search.

text

Matcher

Matcher for the widget text.

options?

MatcherOptions

Text matching options.

Returns

Widget[]

Every matching widget, or an empty array when none match.

Released under the MPL-2.0 License.