You are here

public function TraversableElement::hasUncheckedField in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::hasUncheckedField()

Checks whether element has a checkbox with specified locator, which is unchecked.

Parameters

string $locator input id, name or label:

Return value

Boolean

See also

NodeElement::isChecked

File

vendor/behat/mink/src/Element/TraversableElement.php, line 188

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

public function hasUncheckedField($locator) {
  $field = $this
    ->findField($locator);
  return null !== $field && !$field
    ->isChecked();
}