Skip to content

API Reference / @gtkx/testing / ByRoleValue

Type Alias: ByRoleValue ​

ByRoleValue = object

Defined in: packages/testing/src/types.ts:64

Constraints on a widget's numeric range value used by role queries. The numbers come from the accessibility tree and match within 0.001, the resolution GTK keeps them to.

Properties ​

max? ​

optional max?: number

Defined in: packages/testing/src/types.ts:73

The highest value the widget can reach, which on a paged widget such as a scrollbar is its adjustment's upper bound less one page.


min? ​

optional min?: number

Defined in: packages/testing/src/types.ts:68

The lower bound of the value's range.


now? ​

optional now?: number

Defined in: packages/testing/src/types.ts:66

The current value.


text? ​

optional text?: Matcher

Defined in: packages/testing/src/types.ts:75

Matcher for the value's textual representation.