Package com.microsoft.playwright
Class FrameLocator.GetByRoleOptions
- java.lang.Object
-
- com.microsoft.playwright.FrameLocator.GetByRoleOptions
-
- Enclosing interface:
- FrameLocator
public static class FrameLocator.GetByRoleOptions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Boolean
checked
An attribute that is usually set byaria-checked
or native<input type=checkbox>
controls.Boolean
disabled
An attribute that is usually set byaria-disabled
ordisabled
.Boolean
exact
Whethername
is matched exactly: case-sensitive and whole-string.Boolean
expanded
An attribute that is usually set byaria-expanded
.Boolean
includeHidden
Option that controls whether hidden elements are matched.Integer
level
A number attribute that is usually present for rolesheading
,listitem
,row
,treeitem
, with default values for<h1>-<h6>
elements.Object
name
Option to match the accessible name.Boolean
pressed
An attribute that is usually set byaria-pressed
.Boolean
selected
An 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 FrameLocator.GetByRoleOptions
setChecked(boolean checked)
An attribute that is usually set byaria-checked
or native<input type=checkbox>
controls.FrameLocator.GetByRoleOptions
setDisabled(boolean disabled)
An attribute that is usually set byaria-disabled
ordisabled
.FrameLocator.GetByRoleOptions
setExact(boolean exact)
Whethername
is matched exactly: case-sensitive and whole-string.FrameLocator.GetByRoleOptions
setExpanded(boolean expanded)
An attribute that is usually set byaria-expanded
.FrameLocator.GetByRoleOptions
setIncludeHidden(boolean includeHidden)
Option that controls whether hidden elements are matched.FrameLocator.GetByRoleOptions
setLevel(int level)
A number attribute that is usually present for rolesheading
,listitem
,row
,treeitem
, with default values for<h1>-<h6>
elements.FrameLocator.GetByRoleOptions
setName(String name)
Option to match the accessible name.FrameLocator.GetByRoleOptions
setName(Pattern name)
Option to match the accessible name.FrameLocator.GetByRoleOptions
setPressed(boolean pressed)
An attribute that is usually set byaria-pressed
.FrameLocator.GetByRoleOptions
setSelected(boolean selected)
An attribute that is usually set byaria-selected
.
-
-
-
Field Detail
-
checked
public Boolean checked
An attribute that is usually set byaria-checked
or native<input type=checkbox>
controls.Learn more about
aria-checked
.
-
disabled
public Boolean disabled
An attribute that is usually set byaria-disabled
ordisabled
.NOTE: Unlike most other attributes,
disabled
is inherited through the DOM hierarchy. Learn more aboutaria-disabled
.
-
exact
public Boolean exact
Whethername
is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored whenname
is 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, useexact
to 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 FrameLocator.GetByRoleOptions setChecked(boolean checked)
An attribute that is usually set byaria-checked
or native<input type=checkbox>
controls.Learn more about
aria-checked
.
-
setDisabled
public FrameLocator.GetByRoleOptions setDisabled(boolean disabled)
An attribute that is usually set byaria-disabled
ordisabled
.NOTE: Unlike most other attributes,
disabled
is inherited through the DOM hierarchy. Learn more aboutaria-disabled
.
-
setExact
public FrameLocator.GetByRoleOptions setExact(boolean exact)
Whethername
is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored whenname
is a regular expression. Note that exact match still trims whitespace.
-
setExpanded
public FrameLocator.GetByRoleOptions setExpanded(boolean expanded)
An attribute that is usually set byaria-expanded
.Learn more about
aria-expanded
.
-
setIncludeHidden
public FrameLocator.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 FrameLocator.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 FrameLocator.GetByRoleOptions setName(String name)
Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, useexact
to control this behavior.Learn more about accessible name.
-
setName
public FrameLocator.GetByRoleOptions setName(Pattern name)
Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, useexact
to control this behavior.Learn more about accessible name.
-
setPressed
public FrameLocator.GetByRoleOptions setPressed(boolean pressed)
An attribute that is usually set byaria-pressed
.Learn more about
aria-pressed
.
-
setSelected
public FrameLocator.GetByRoleOptions setSelected(boolean selected)
An attribute that is usually set byaria-selected
.Learn more about
aria-selected
.
-
-