Skip to content

API Reference / @gtkx/testing / getByRole

Variable: getByRole

const getByRole: BuiltinQueries["getByRole"]

Defined in: queries.d.ts:79

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

Released under the MPL-2.0 License.