Package com.microsoft.playwright
Class Locator.GetByRoleOptions
java.lang.Object
com.microsoft.playwright.Locator.GetByRoleOptions
- Enclosing interface:
Locator
-
Field Summary
FieldsModifier and TypeFieldDescriptionAn attribute that is usually set byaria-checkedor native<input type=checkbox>controls.An attribute that is usually set byaria-disabledordisabled.Whethernameis matched exactly: case-sensitive and whole-string.An attribute that is usually set byaria-expanded.Option that controls whether hidden elements are matched.A number attribute that is usually present for rolesheading,listitem,row,treeitem, with default values for<h1>-<h6>elements.Option to match the accessible name.An attribute that is usually set byaria-pressed.An attribute that is usually set byaria-selected. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetChecked(boolean checked) An attribute that is usually set byaria-checkedor native<input type=checkbox>controls.setDisabled(boolean disabled) An attribute that is usually set byaria-disabledordisabled.setExact(boolean exact) Whethernameis matched exactly: case-sensitive and whole-string.setExpanded(boolean expanded) An attribute that is usually set byaria-expanded.setIncludeHidden(boolean includeHidden) Option that controls whether hidden elements are matched.setLevel(int level) A number attribute that is usually present for rolesheading,listitem,row,treeitem, with default values for<h1>-<h6>elements.Option to match the accessible name.Option to match the accessible name.setPressed(boolean pressed) An attribute that is usually set byaria-pressed.setSelected(boolean selected) An attribute that is usually set byaria-selected.
-
Field Details
-
checked
An attribute that is usually set byaria-checkedor native<input type=checkbox>controls.Learn more about
aria-checked. -
disabled
An attribute that is usually set byaria-disabledordisabled.NOTE: Unlike most other attributes,
disabledis inherited through the DOM hierarchy. Learn more aboutaria-disabled. -
exact
Whethernameis matched exactly: case-sensitive and whole-string. Defaults to false. Ignored whennameis a regular expression. Note that exact match still trims whitespace. -
expanded
An attribute that is usually set byaria-expanded.Learn more about
aria-expanded. -
includeHidden
Option that controls whether hidden elements are matched. By default, only non-hidden elements, as defined by ARIA, are matched by role selector.Learn more about
aria-hidden. -
level
A number attribute that is usually present for rolesheading,listitem,row,treeitem, with default values for<h1>-<h6>elements.Learn more about
aria-level. -
name
Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, useexactto control this behavior.Learn more about accessible name.
-
pressed
An attribute that is usually set byaria-pressed.Learn more about
aria-pressed. -
selected
An attribute that is usually set byaria-selected.Learn more about
aria-selected.
-
-
Constructor Details
-
GetByRoleOptions
public GetByRoleOptions()
-
-
Method Details
-
setChecked
An attribute that is usually set byaria-checkedor native<input type=checkbox>controls.Learn more about
aria-checked. -
setDisabled
An attribute that is usually set byaria-disabledordisabled.NOTE: Unlike most other attributes,
disabledis inherited through the DOM hierarchy. Learn more aboutaria-disabled. -
setExact
Whethernameis matched exactly: case-sensitive and whole-string. Defaults to false. Ignored whennameis a regular expression. Note that exact match still trims whitespace. -
setExpanded
An attribute that is usually set byaria-expanded.Learn more about
aria-expanded. -
setIncludeHidden
Option that controls whether hidden elements are matched. By default, only non-hidden elements, as defined by ARIA, are matched by role selector.Learn more about
aria-hidden. -
setLevel
A number attribute that is usually present for rolesheading,listitem,row,treeitem, with default values for<h1>-<h6>elements.Learn more about
aria-level. -
setName
Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, useexactto control this behavior.Learn more about accessible name.
-
setName
Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, useexactto control this behavior.Learn more about accessible name.
-
setPressed
An attribute that is usually set byaria-pressed.Learn more about
aria-pressed. -
setSelected
An attribute that is usually set byaria-selected.Learn more about
aria-selected.
-