class PartialNamedSelector in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Selector/PartialNamedSelector.php \Behat\Mink\Selector\PartialNamedSelector
Named selectors engine. Uses registered XPath selectors to create new expressions.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- class \Behat\Mink\Selector\NamedSelector implements SelectorInterface
- class \Behat\Mink\Selector\PartialNamedSelector
Expanded class hierarchy of PartialNamedSelector
1 file declares its use of PartialNamedSelector
- PartialNamedSelectorTest.php in vendor/
behat/ mink/ tests/ Selector/ PartialNamedSelectorTest.php
File
- vendor/
behat/ mink/ src/ Selector/ PartialNamedSelector.php, line 18
Namespace
Behat\Mink\SelectorView source
class PartialNamedSelector extends NamedSelector {
public function __construct() {
$this
->registerReplacement('%tagTextMatch%', 'contains(normalize-space(string(.)), %locator%)');
$this
->registerReplacement('%valueMatch%', 'contains(./@value, %locator%)');
$this
->registerReplacement('%titleMatch%', 'contains(./@title, %locator%)');
$this
->registerReplacement('%altMatch%', 'contains(./@alt, %locator%)');
$this
->registerReplacement('%relMatch%', 'contains(./@rel, %locator%)');
$this
->registerReplacement('%labelAttributeMatch%', 'contains(./@label, %locator%)');
parent::__construct();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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:: |
|
PartialNamedSelector:: |
public | function |
Creates selector instance. Overrides NamedSelector:: |