You are here

public function TraversableElement::hasCheckedField 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::hasCheckedField()

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

Parameters

string $locator input id, name or label:

Return value

Boolean

See also

NodeElement::isChecked

File

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

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

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