You are here

class HiddenFieldSelector in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector
  2. 10 core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector

Extends PartialNamedSelector to allow retrieval of hidden fields.

Hierarchy

Expanded class hierarchy of HiddenFieldSelector

See also

\Behat\Mink\Selector\PartialNamedSelector

File

core/tests/Drupal/Tests/HiddenFieldSelector.php, line 12

Namespace

Drupal\Tests
View source
class HiddenFieldSelector extends PartialNamedSelector {

  /**
   * {@inheritdoc}
   */
  public function __construct() {
    $xpath = ".//input[%lowercaseType% = 'hidden' and (%idOrNameMatch% or %valueMatch%)]";
    $this
      ->registerNamedXpath('hidden_field', $xpath);
    parent::__construct();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HiddenFieldSelector::__construct public function Creates selector instance.