ExactNamedSelector.php in Zircon Profile 8
File
vendor/behat/mink/src/Selector/ExactNamedSelector.php
View source
<?php
namespace Behat\Mink\Selector;
class ExactNamedSelector extends NamedSelector {
public function __construct() {
$this
->registerReplacement('%tagTextMatch%', 'normalize-space(string(.)) = %locator%');
$this
->registerReplacement('%valueMatch%', './@value = %locator%');
$this
->registerReplacement('%titleMatch%', './@title = %locator%');
$this
->registerReplacement('%altMatch%', './@alt = %locator%');
$this
->registerReplacement('%relMatch%', './@rel = %locator%');
$this
->registerReplacement('%labelAttributeMatch%', './@label = %locator%');
parent::__construct();
}
}
Classes
Name |
Description |
ExactNamedSelector |
Exact match selector engine. Like the Named selector engine but ignores partial matches. |