class HiddenFieldSelector
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector
- 10 core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector
- 11.x core/tests/Drupal/Tests/HiddenFieldSelector.php \Drupal\Tests\HiddenFieldSelector
Extends PartialNamedSelector to allow retrieval of hidden fields.
Hierarchy
- class \Drupal\Tests\HiddenFieldSelector extends \Behat\Mink\Selector\PartialNamedSelector
Expanded class hierarchy of HiddenFieldSelector
See also
\Behat\Mink\Selector\PartialNamedSelector
File
-
core/
tests/ Drupal/ Tests/ HiddenFieldSelector.php, line 12
Namespace
Drupal\TestsView 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
HiddenFieldSelector::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.