externalByRoleSelectorOptions
Index
Properties
externaloptionalchecked
externaloptionaldisabled
An attribute that is usually set by aria-disabled
or disabled
.
NOTE Unlike most other attributes, disabled
is inherited through the DOM hierarchy. Learn more about
aria-disabled
.
This property is supported only by Playwright.
externaloptionalexact
Whether name
is matched exactly:
case-sensitive and whole-string.
Playwright defaults to false
for backwards compatibility, but we recommend setting this property to true
to avoid unintentional matches.
Playwright supports using a RegExp
to match the name.
When using a RegExp
, exact matching is not applicable and this option is ignored.
Note that exact match still trims whitespace.
WebdriverIO always performs exact matching, so this option is ignored.
externaloptionalexpanded
An attribute that is usually set by aria-expanded
.
Learn more about aria-expanded
.
This property is supported only by Playwright.
externaloptionalincludeHidden
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
.
This property is supported only by Playwright.
externaloptionallevel
A number attribute that is usually present for roles heading
, listitem
, row
, treeitem
, with default values
for <h1>-<h6>
elements.
Learn more about aria-level
.
This property is supported only by Playwright.
externaloptionalname
Option to match the accessible name.
Only Playwright supports using a RegExp
to match the name. When using a string
instead, Playwright performs
a case-insensitive match and searches for a substring. Use
exact
to control this behavior.
WebdriverIO does not support using RegExp
and performs a case-sensitive and exact matching.
externaloptionalpressed
An attribute that is usually set by aria-pressed
.
This property is supported only by Playwright.
externaloptionalselected
An attribute that is usually set by aria-selected
.
This property is supported only by Playwright.
An attribute that is usually set by
aria-checked
or native<input type=checkbox>
controls.This property is supported only by Playwright.