Checks whether element has a checkbox with specified locator, which is checked.
string $locator input id, name or label:
bool
NodeElement::isChecked
public function hasCheckedField(string $locator) { $field = $this->findField($locator); return null !== $field && $field->isChecked(); }