function HiddenFieldSelector::__construct
Same name in other branches
- 9 core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector::__construct()
- 8.9.x core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector::__construct()
- 11.x core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector::__construct()
File
-
core/
tests/ Drupal/ Tests/ HiddenFieldSelector.php, line 19
Class
- HiddenFieldSelector
- Extends PartialNamedSelector to allow retrieval of hidden fields.
Namespace
Drupal\TestsCode
public function __construct() {
$xpath = ".//input[%lowercaseType% = 'hidden' and (%idOrNameMatch% or %valueMatch%)]";
$this->registerNamedXpath('hidden_field', $xpath);
parent::__construct();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.