How to check a link if its body has special characters such as "@"?
Example:
<a href="foo.php"> foo@foo.com </a>
public function foo() { $this->visit('/foo') ->click(' foo@foo.com '); }
Error output:
Symfony\Component\CssSelector\Exception\SyntaxErrorException: Expected selector, but <delimiter "@" at 7> found.
I also tried to escape the @ sign:
public function foo() { $this->visit('/foo') ->click('foo\@foo.com'); }
Error output:
InvalidArgumentException: Could not find a link with a body, name, or ID attribute of [foo\@foo.com].
source share