From f81d93b3f78ab397f9404f5b37ebaeac9887e5a7 Mon Sep 17 00:00:00 2001 From: Claudiu Cristea Date: Sun, 17 Jul 2016 21:13:29 +0300 Subject: [PATCH] Provide partial named selector that selects also the hidden fields --- .../PartialNamedIncludingHiddenSelector.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/Selector/PartialNamedIncludingHiddenSelector.php diff --git a/src/Selector/PartialNamedIncludingHiddenSelector.php b/src/Selector/PartialNamedIncludingHiddenSelector.php new file mode 100644 index 000000000..ff15c43b0 --- /dev/null +++ b/src/Selector/PartialNamedIncludingHiddenSelector.php @@ -0,0 +1,26 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Behat\Mink\Selector; + +/** + * Named selectors engine. Uses registered XPath selectors to create new expressions. + * + * @author Konstantin Kudryashov + */ +class PartialNamedIncludingHiddenSelector extends PartialNamedSelector +{ + public function __construct() + { + $this->registerReplacement('%notFieldTypeFilter%', "not(%buttonTypeFilter%)"); + + parent::__construct(); + } +}