API Reference / @gtkx/testing / ByRoleOptions
Type Alias: ByRoleOptions<T>
ByRoleOptions<
T> =MatcherOptions<T> &object
Defined in: packages/testing/dist/types.d.ts:71
Options for role queries: an accessible name matcher plus accessible state and value constraints.
Type Declaration
busy?
optionalbusy?:boolean
Required busy state, which an unset state satisfies as false.
checked?
optionalchecked?:boolean
Required checked state; a mixed check button reads as neither, so it matches neither value.
description?
optionaldescription?:Matcher
Matcher for the widget's own accessible description, ignoring its described-by targets.
expanded?
optionalexpanded?:boolean
Required expanded state of an expander or tree expander.
hidden?
optionalhidden?:boolean
When true, include widgets excluded from the accessibility tree. Widgets that are not mapped stay excluded.
level?
optionallevel?:number
Heading or hierarchy level.
name?
optionalname?:Matcher
Matcher for the widget's accessible name.
pressed?
optionalpressed?:boolean
Required active state of a toggle button; any other widget matches neither value.
selected?
optionalselected?:boolean
Required selected state of a row, list item, grid cell, option or tree item.
value?
optionalvalue?:ByRoleValue
Constraints on the widget's range value, each checked only when given.
Type Parameters
T
T extends Gtk.Widget = Gtk.Widget