class ExactNamedSelector in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Selector/ExactNamedSelector.php \Behat\Mink\Selector\ExactNamedSelector
Exact match selector engine. Like the Named selector engine but ignores partial matches.
Hierarchy
- class \Behat\Mink\Selector\NamedSelector implements SelectorInterface
- class \Behat\Mink\Selector\ExactNamedSelector
Expanded class hierarchy of ExactNamedSelector
1 file declares its use of ExactNamedSelector
- ExactNamedSelectorTest.php in vendor/
behat/ mink/ tests/ Selector/ ExactNamedSelectorTest.php
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExactNamedSelector:: |
public | function |
Creates selector instance. Overrides NamedSelector:: |
|
NamedSelector:: |
private | property | ||
NamedSelector:: |
private | property | ||
NamedSelector:: |
private | property | ||
NamedSelector:: |
private | function | ||
NamedSelector:: |
public | function | Registers new XPath selector with specified name. | |
NamedSelector:: |
protected | function | Registers a replacement in the list of replacements. | |
NamedSelector:: |
public | function |
Translates provided locator into XPath. Overrides SelectorInterface:: |