Skip to content

API Reference / @gtkx/testing / ByRoleValue

Type Alias: ByRoleValue

ByRoleValue = object

Defined in: packages/testing/dist/types.d.ts:57

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/dist/types.d.ts:66

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/dist/types.d.ts:61

The lower bound of the value's range.


now?

optional now?: number

Defined in: packages/testing/dist/types.d.ts:59

The current value.


text?

optional text?: Matcher

Defined in: packages/testing/dist/types.d.ts:68

Matcher for the value's textual representation.

Released under the MPL-2.0 License.