class ExactNamedSelector
Exact match selector engine. Like the Named selector engine but ignores partial matches.
Hierarchy
- class \Behat\Mink\Selector\NamedSelector implements \Behat\Mink\Selector\SelectorInterface
- class \Behat\Mink\Selector\ExactNamedSelector extends \Behat\Mink\Selector\NamedSelector
Expanded class hierarchy of ExactNamedSelector
File
-
vendor/
behat/ mink/ src/ Selector/ ExactNamedSelector.php, line 16
Namespace
Behat\Mink\SelectorView source
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();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ExactNamedSelector::__construct | public | function | Creates selector instance. | Overrides NamedSelector::__construct |
NamedSelector::$replacements | private | property | ||
NamedSelector::$selectors | private | property | ||
NamedSelector::$xpathEscaper | private | property | ||
NamedSelector::escapeLocator | private | function | ||
NamedSelector::registerNamedXpath | public | function | Registers new XPath selector with specified name. | |
NamedSelector::registerReplacement | public | function | Register a string replacement used to reduce duplication and increase readability in a Named XPath selector. | |
NamedSelector::translateToXPath | public | function | Translates provided locator into XPath. | Overrides SelectorInterface::translateToXPath |