Skip to content

API Reference / @gtkx/testing / queryByRole

Variable: queryByRole

const queryByRole: BuiltinQueries["queryByRole"]

Defined in: queries.d.ts:75

Returns the single widget with a matching accessible role and options, or null when none match. Throws when more than one matches.

Released under the MPL-2.0 License.