Support the ongoing development of →
Forms Testing
Last updated 1 year ago.

Not sure, but try dot notation maybe?

$this->type('foo', '')

EDIT: Whatever you provide as element, its validity is checked via CrawlerTrait\filterByNameOrId() method, which is:

protected function filterByNameOrId($name, $element = '*')
        $name = str_replace('#', '', $name);

        return $this->crawler->filter("{$element}#{$name}, {$element}[name='{$name}']");

Just make sure whatever name you pass to it, it turns out to be valid filter, especially valid XPath context, because underlying Symfony FormFilter class supports XPath.

Last updated 8 years ago.

Dot notation definitely does not work. It complains about an undefined variable comment.


Running into this same issue. Ever find a solution?


Same issue


Sign in to participate in this thread!


Your banner here too?

EdRands edrands Joined 3 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.