function NamedSelector::__construct
Creates selector instance.
4 calls to NamedSelector::__construct()
- ExactNamedSelector::__construct in vendor/
behat/ mink/ src/ Selector/ ExactNamedSelector.php - Creates selector instance.
- ExactNamedSelector::__construct in vendor/
behat/ mink/ src/ Selector/ ExactNamedSelector.php - Creates selector instance.
- PartialNamedSelector::__construct in vendor/
behat/ mink/ src/ Selector/ PartialNamedSelector.php - Creates selector instance.
- PartialNamedSelector::__construct in vendor/
behat/ mink/ src/ Selector/ PartialNamedSelector.php - Creates selector instance.
2 methods override NamedSelector::__construct()
- ExactNamedSelector::__construct in vendor/
behat/ mink/ src/ Selector/ ExactNamedSelector.php - Creates selector instance.
- PartialNamedSelector::__construct in vendor/
behat/ mink/ src/ Selector/ PartialNamedSelector.php - Creates selector instance.
File
-
vendor/
behat/ mink/ src/ Selector/ NamedSelector.php, line 176
Class
- NamedSelector
- Named selectors engine. Uses registered XPath selectors to create new expressions.
Namespace
Behat\Mink\SelectorCode
public function __construct() {
$this->xpathEscaper = new Escaper();
foreach ($this->replacements as $from => $to) {
$this->registerReplacement($from, $to);
}
foreach ($this->selectors as $alias => $selector) {
$this->registerNamedXpath($alias, $selector);
}
}