function SelectorsHandler::xpathLiteral
Translates string to XPath literal.
Parameters
string $s:
Return value
string
Deprecated
since Mink 1.7. Use \Behat\Mink\Selector\Xpath\Escaper::escapeLiteral when building Xpath or pass the unescaped value when using the named selector.
File
-
vendor/
behat/ mink/ src/ Selector/ SelectorsHandler.php, line 132
Class
- SelectorsHandler
- Selectors handler.
Namespace
Behat\Mink\SelectorCode
public function xpathLiteral(string $s) {
@trigger_error('The ' . __METHOD__ . ' method is deprecated as of 1.7 and will be removed in 2.0.' . ' Use \\Behat\\Mink\\Selector\\Xpath\\Escaper::escapeLiteral instead when building Xpath' . ' or pass the unescaped value when using the named selector.', E_USER_DEPRECATED);
return $this->escaper
->escapeLiteral($s);
}