public function NamedSelector::registerNamedXpath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Selector/NamedSelector.php \Behat\Mink\Selector\NamedSelector::registerNamedXpath()
Registers new XPath selector with specified name.
Parameters
string $name name for selector:
string $xpath xpath expression:
File
- vendor/
behat/ mink/ src/ Selector/ NamedSelector.php, line 186
Class
- NamedSelector
- Named selectors engine. Uses registered XPath selectors to create new expressions.
Namespace
Behat\Mink\SelectorCode
public function registerNamedXpath($name, $xpath) {
$this->selectors[$name] = $xpath;
}