public function SelectorsHandler::getSelector in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Selector/SelectorsHandler.php \Behat\Mink\Selector\SelectorsHandler::getSelector()
Returns selector engine with specified name.
Parameters
string $name selector engine name:
Return value
Throws
\InvalidArgumentException
File
- vendor/
behat/ mink/ src/ Selector/ SelectorsHandler.php, line 75
Class
- SelectorsHandler
- Selectors handler.
Namespace
Behat\Mink\SelectorCode
public function getSelector($name) {
if ('named' === $name) {
@trigger_error('Using the "named" selector directly from the handler is deprecated as of 1.6 and will be removed in 2.0.' . ' Use the "named_partial" or use the "named" selector through the Element API instead.', E_USER_DEPRECATED);
$name = 'named_partial';
}
if (!$this
->isSelectorRegistered($name)) {
throw new \InvalidArgumentException("Selector \"{$name}\" is not registered.");
}
return $this->selectors[$name];
}