Skip to content

API Reference / @gtkx/testing / queryAllByRole

Variable: queryAllByRole

const queryAllByRole: (container, role, options?) => Gtk.Widget[]

Defined in: queries.d.ts:31

Finds every widget under the container whose accessible role matches role and that satisfies the given options. Widgets excluded from the accessibility tree are skipped unless options.hidden is set.

Parameters

container

Container

Widget subtree to search.

role

Gtk.AccessibleRole

Accessible role to match.

options?

ByRoleOptions

Additional accessible name, state, and value constraints.

Returns

Gtk.Widget[]

Every matching widget, or an empty array when none match.

Released under the MPL-2.0 License.