reactlynx-testing-library / ByRoleOptions

接口: ByRoleOptions

属性

busy?

optional busy: boolean;

If true only includes elements in the query set that are marked as busy in the accessibility tree, i.e., aria-busy="true"

定义于

index.d.ts:227


checked?

optional checked: boolean;

If true only includes elements in the query set that are marked as checked in the accessibility tree, i.e., aria-checked="true"

定义于

index.d.ts:232


current?

optional current: string | boolean;

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.

定义于

index.d.ts:241


description?

optional description: string | RegExp | (accessibleDescription: string, element: Element) => boolean;

Only considers elements with the specified accessible description.

定义于

index.d.ts:274


expanded?

optional expanded: boolean;

If true only includes elements in the query set that are marked as expanded in the accessibility tree, i.e., aria-expanded="true"

定义于

index.d.ts:246


hidden?

optional hidden: boolean;

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.

定义于

index.d.ts:217


level?

optional level: number;

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.

定义于

index.d.ts:252


name?

optional name: string | RegExp | (accessibleName: string, element: Element) => boolean;

Only considers elements with the specified accessible name.

定义于

index.d.ts:267


pressed?

optional pressed: boolean;

If true only includes elements in the query set that are marked as pressed in the accessibility tree, i.e., aria-pressed="true"

定义于

index.d.ts:237


queryFallbacks?

optional queryFallbacks: boolean;

Includes every role used in the role attribute For example *ByRole('progressbar', {queryFallbacks: true}) will find <div role="meter progressbar">.

定义于

index.d.ts:263


selected?

optional selected: boolean;

If true only includes elements in the query set that are marked as selected in the accessibility tree, i.e., aria-selected="true"

定义于

index.d.ts:222


suggest?

optional suggest: boolean;

suppress suggestions for a specific query

定义于

index.d.ts:211


value?

optional value: object;

max?

optional max: number;

min?

optional min: number;

now?

optional now: number;

text?

optional text: Matcher;

定义于

index.d.ts:253

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。