You are here

public function NamedSelector::registerNamedXpath in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Selector

Code

public function registerNamedXpath($name, $xpath) {
  $this->selectors[$name] = $xpath;
}