Function: byChecked()
byChecked(
checked,relative):CssLocator
Defined in: packages/core/src/locators/byChecked.ts:21
Locate a checkbox or radio input based on its checked state.
Parameters​
checked​
boolean = true
Whether the element should be checked. Defaults to true.
relative​
LocatorRelativePosition = 'Same'
Relative position for the locator. Defaults to
'Same' so it can be chained with the checkbox locator itself.
Returns​
Example​
const unchecked = byChecked(false);