minkphp / MinkGoutteDriver

Goutte driver for Mink framework
MIT License
299 stars 52 forks source link

Not find input checkbox when name is an empty array #6

Closed franmomu closed 10 years ago

franmomu commented 12 years ago

I'm not sure if here is the place, the issue is that if I have a html like this:

<label for="form_foo_var">Foo</label>
<input type="checkbox" id="form_foo_var" name="form[foo][]" value="var" />

And in a scenario I have this step:

And I check "form_foo_var"

I get "Call to a member function tick() on a non-object in /home/fran/dev/project/vendor/behat/mink-browserkit-driver/src/Behat/Mink/Driver/BrowserKitDriver.php on line 448"

This happens when the name is an empty array

AdrianSchneider commented 12 years ago

+1

did you find a workaround?

aik099 commented 10 years ago

Is this still a problem, please try on latest @dev version?

stof commented 10 years ago

Closing as this has been fixed a few months ago and we have tests covering this now