GetByRoleOptions Class
Configures LocatorScope.GetByRole: the states of the elements to find.
public sealed class GetByRoleOptionsConstructors
| Name | Description |
|---|---|
| GetByRoleOptions() |
GetByRoleOptions()
public GetByRoleOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Checked | Gets the checked state of the elements (aria-checked, or the state of a check box), or null to match any state. |
| Disabled | Gets the disabled state of the elements, or null to match any state. |
| Exact | Gets whether the name matches the whole accessible name, with the case. By default, the name matches a substring of the accessible name, ignoring the case. The white space is collapsed in both cases. |
| Expanded | Gets the expanded state of the elements (aria-expanded), or null to match any state. |
| IncludeHidden | Gets whether the elements that are hidden from the accessibility tree by visibility: hidden or aria-hidden="true" are found. The default is false. The role of an element that is not rendered (display: none) is none, so such an element is not found by its role: use a CSS locator. |
| Level | Gets the level of the headings, list items, rows or tree items (aria-level, or the level of an h1-h6 element), or null to match any level. |
| Pressed | Gets the pressed state of the toggle buttons (aria-pressed), or null to match any state. |
| Selected | Gets the selected state of the elements (aria-selected, or the selectedness of an option), or null to match any state. |
Checked
GetByRoleOptions.csDisabled
GetByRoleOptions.csExact
GetByRoleOptions.csExpanded
GetByRoleOptions.csIncludeHidden
GetByRoleOptions.csGets whether the elements that are hidden from the accessibility tree by visibility: hidden or aria-hidden="true" are found. The default is false. The role of an element that is not rendered (display: none) is none, so such an element is not found by its role: use a CSS locator.
public bool IncludeHidden { get; init; }