Skip to content

API Reference / @gtkx/testing / findByRole

Variable: findByRole

const findByRole: BuiltinQueries["findByRole"]

Defined in: queries.d.ts:83

Waits for and returns the single widget with a matching accessible role and options, retrying until it appears or the timeout elapses. Rejects when none or more than one matches.

Released under the MPL-2.0 License.