Codeception / lib-innerbrowser

InnerBrowser
MIT License
79 stars 19 forks source link

If no formId, get cryptic Expected string or identifier, but \<delimiter "]" at 11> found." #31

Open bitwombat opened 3 years ago

bitwombat commented 3 years ago

getFormFromCrawler in InnerBrowser.php throws:

"[Symfony\Component\CssSelector\Exception\SyntaxErrorException] Expected string or identifier, but \<delimiter "]" at 11> found."

if the $formId is ""

Naktibalda commented 3 years ago

Do you have a form without id and action attributes?

Please provide HTML and test code to reproduce this issue.

bitwombat commented 3 years ago

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.