Skip to content

checkBox()

This selector lets you identify a checkbox on a web page either with label or with attribute and value pairs and proximity selectors.

await checkBox('Vehicle').uncheck()
await checkBox('Vehicle').exists()
await checkBox({id:'checkBoxId'},below('text')).exists()
await checkBox(below('text')).exists()
NameTypeDescription
labelOrAttrValuePairsObjectEither the label (human-visible name) of the text field or pairs of attribute and value like {“id”:“name”,“class”:“class-name”}
_optionsObject
argsrelativeSelectorProximity selectors
TypeDescription
CheckBoxWrapper