Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraversableElement.php

function TraversableElement::hasUncheckedField

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

Parameters

string $locator input id, name or label:

Return value

bool

See also

NodeElement::isChecked

File

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

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal