reactlynx-testing-library / ByRoleOptions
Interface: ByRoleOptions
Properties
busy?
If true only includes elements in the query set that are marked as
busy in the accessibility tree, i.e., aria-busy="true"
Defined in
index.d.ts:227
checked?
If true only includes elements in the query set that are marked as
checked in the accessibility tree, i.e., aria-checked="true"
Defined in
index.d.ts:232
current?
Filters elements by their aria-current state. true and false match aria-current="true" and aria-current="false" (as well as a missing aria-current attribute) respectively.
Defined in
index.d.ts:241
description?
Only considers elements with the specified accessible description.
Defined in
index.d.ts:274
expanded?
If true only includes elements in the query set that are marked as
expanded in the accessibility tree, i.e., aria-expanded="true"
Defined in
index.d.ts:246
hidden?
If true includes elements in the query set that are usually excluded from
the accessibility tree. role="none" or role="presentation" are included
in either case.
Defined in
index.d.ts:217
level?
Includes elements with the "heading" role matching the indicated level,
either by the semantic HTML heading elements <h1>-<h6> or matching
the aria-level attribute.
Defined in
index.d.ts:252
name?
Only considers elements with the specified accessible name.
Defined in
index.d.ts:267
pressed?
If true only includes elements in the query set that are marked as
pressed in the accessibility tree, i.e., aria-pressed="true"
Defined in
index.d.ts:237
queryFallbacks?
Includes every role used in the role attribute
For example *ByRole('progressbar', {queryFallbacks: true}) will find <div role="meter progressbar">.
Defined in
index.d.ts:263
selected?
If true only includes elements in the query set that are marked as
selected in the accessibility tree, i.e., aria-selected="true"
Defined in
index.d.ts:222
suggest?
suppress suggestions for a specific query
Defined in
index.d.ts:211
value?
max?
min?
now?
text?
Defined in
index.d.ts:253