DomCrawler (that are used there) can't process hidden inputs.
Jul 22, 2015
5
Level 1
How to $this->type() in a hidden input
I want to write a test in Laravel 5.1 that submits a form, with one of the fields being a hidden input.
The HTML for the hidden input is:
<input name="description" type="hidden">
$this->visit('form')
->type("Example description", "description")
->press('Submit')
However, when I try to run the test I get an InvalidArgumentException: Unreachable field "0".
Is there some method I'm missing in CrawlerTraits.php that would allow me to fill in a hidden input?
Please or to participate in this conversation.