Skip to content

API Reference / @gtkx/testing / queryAllByText

Variable: queryAllByText

const queryAllByText: (container, text, options?) => Gtk.Widget[]

Defined in: queries.d.ts:47

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

Gtk.Widget[]

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

Released under the MPL-2.0 License.