lib-innerbrowser
lib-innerbrowser copied to clipboard
If no formId, get cryptic Expected string or identifier, but \<delimiter "]" at 11> found."
getFormFromCrawler
in InnerBrowser.php
throws:
"[Symfony\Component\CssSelector\Exception\SyntaxErrorException] Expected string or identifier, but \<delimiter "]" at 11> found."
if the $formId
is ""
Do you have a form without id
and action
attributes?
Please provide HTML and test code to reproduce this issue.
Do you have a form without id and action attributes?
Yes, in error, but the message is unhelpful.
Please provide HTML and test code to reproduce this issue.
Totally reasonable, but you can see getFormFromCrawler
relies on id
being set.