Skip to main content

Function: queryAllByLabelText()

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

Defined in: queries.ts:154

Finds all elements that are labelled by a GtkLabel whose text matches.

Uses GtkLabel's mnemonic widget association to find form elements by their label text. Only returns widgets that are properly labelled via GtkLabel's mnemonic-widget property.

Parameters

ParameterTypeDescription
containerContainerThe container to search within
textTextMatchLabel text to match (string, RegExp, or custom matcher)
options?TextMatchOptionsQuery options including normalization

Returns

Widget[]

Array of labelled widgets (empty if none found)