-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
This is my problem:
$I->selectOption('#country', "/admin/charters/index/68");
Exception thrown Symfony\Component\CssSelector\SyntaxError:
Unexpected symbol: / at 16 Stack trace:
#1 tokenizeSymbol /Symfony/Component/CssSelector/Tokenizer.php:97
#2 /Symfony/Component/CssSelector/CssSelector.php:93
#3 /Symfony/Component/CssSelector/CssSelector.php:61
#4 /Codeception/vendor/Symfony/Component/DomCrawler/Crawler.php:516
#5 /Codeception/src/Codeception/Util/Framework.php:245
if $I->selectOption('#country', "68"); it's all work
fix
if (!preg_match('#[^\w\-/]#', $s, $match, PREG_OFFSET_CAPTURE, $pos)) {
// Goes to end of s
return array(substr($s, $start), strlen($s));
}