Package com.microsoft.playwright
Class Locator.GetByRoleOptions
- java.lang.Object
-
- com.microsoft.playwright.Locator.GetByRoleOptions
-
-
Field Summary
Fields Modifier and Type Field Description BooleancheckedAn attribute that is usually set byaria-checkedor native<input type=checkbox>controls.BooleandisabledAn attribute that is usually set byaria-disabledordisabled.BooleanexactWhethernameis matched exactly: case-sensitive and whole-string.BooleanexpandedAn attribute that is usually set byaria-expanded.BooleanincludeHiddenOption that controls whether hidden elements are matched.IntegerlevelA number attribute that is usually present for rolesheading,listitem,row,treeitem, with default values for<h1>-<h6>elements.ObjectnameOption to match the accessible name.BooleanpressedAn attribute that is usually set byaria-pressed.BooleanselectedAn attribute that is usually set byaria-selected.
-
Constructor Summary
Constructors Constructor Description GetByRoleOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locator.GetByRoleOptionssetChecked(boolean checked)An attribute that is usually set byaria-checkedor native<input type=checkbox>controls.Locator.GetByRoleOptionssetDisabled(boolean disabled)An attribute that is usually set byaria-disabledordisabled.Locator.GetByRoleOptionssetExact(boolean exact)Whethernameis matched exactly: case-sensitive and whole-string.Locator.GetByRoleOptionssetExpanded(boolean expanded)An attribute that is usually set byaria-expanded.Locator.GetByRoleOptionssetIncludeHidden(boolean includeHidden)Option that controls whether hidden elements are matched.Locator.GetByRoleOptionssetLevel(int level)A number attribute that is usually present for rolesheading,listitem,row,treeitem, with default values for<h1>-<h6>elements.Locator.GetByRoleOptionssetName(String name)Option to match the accessible name.Locator.GetByRoleOptionssetName(Pattern name)Option to match the accessible name.Locator.GetByRoleOptionssetPressed(boolean pressed)An attribute that is usually set byaria-pressed.Locator.GetByRoleOptionssetSelected(boolean selected)An attribute that is usually set byaria-selected.
-
-
-
Field Detail
-
checked
public Boolean checked
An attribute that is usually set byaria-checkedor native<input type=checkbox>controls.Learn more about
aria-checked.
-
disabled
public Boolean 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
public Boolean 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
public Boolean expanded
An attribute that is usually set byaria-expanded.Learn more about
aria-expanded.
-
includeHidden
public Boolean 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
public Integer 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
public Object 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
public Boolean pressed
An attribute that is usually set byaria-pressed.Learn more about
aria-pressed.
-
selected
public Boolean selected
An attribute that is usually set byaria-selected.Learn more about
aria-selected.
-
-
Method Detail
-
setChecked
public Locator.GetByRoleOptions setChecked(boolean checked)
An attribute that is usually set byaria-checkedor native<input type=checkbox>controls.Learn more about
aria-checked.
-
setDisabled
public Locator.GetByRoleOptions setDisabled(boolean disabled)
An attribute that is usually set byaria-disabledordisabled.NOTE: Unlike most other attributes,
disabledis inherited through the DOM hierarchy. Learn more aboutaria-disabled.
-
setExact
public Locator.GetByRoleOptions setExact(boolean exact)
Whethernameis matched exactly: case-sensitive and whole-string. Defaults to false. Ignored whennameis a regular expression. Note that exact match still trims whitespace.
-
setExpanded
public Locator.GetByRoleOptions setExpanded(boolean expanded)
An attribute that is usually set byaria-expanded.Learn more about
aria-expanded.
-
setIncludeHidden
public Locator.GetByRoleOptions setIncludeHidden(boolean 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.
-
setLevel
public Locator.GetByRoleOptions setLevel(int 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.
-
setName
public Locator.GetByRoleOptions setName(String 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.
-
setName
public Locator.GetByRoleOptions setName(Pattern 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.
-
setPressed
public Locator.GetByRoleOptions setPressed(boolean pressed)
An attribute that is usually set byaria-pressed.Learn more about
aria-pressed.
-
setSelected
public Locator.GetByRoleOptions setSelected(boolean selected)
An attribute that is usually set byaria-selected.Learn more about
aria-selected.
-
-