API Reference / @gtkx/testing / queryAllByLabelText
Function: queryAllByLabelText()
queryAllByLabelText<
T>(container,text,options?):T[]
Defined in: packages/testing/src/queries.ts:407
Finds every widget associated with a label whose text matches: a Gtk.Label mnemonic target, the widget's own accessible label, or its labelled-by relation. Widgets that are not mapped are never matched.
Type Parameters
T
T extends Accessible = Widget
Parameters
container
Widget subtree to search.
text
Matcher for the label text.
options?
Text matching options.
Returns
T[]
Every matching widget, or an empty array when none match.