Behat/Mink — Issue #209: Submitting form with multiple submit buttons fails
Author: luku
Created: 2012-03-01 18:12:14+00:00
State: open

This is related to issue #100, so check https://github.com/Behat/Mink/issues/100 for more info. It was fixed only partially. When I press one of many submit buttons, it submits correct form data about the button, however if I am filling some data into the form before I press the button, it returns error that form field with id|name|... is not found.
I believe the error is due to line: https://github.com/Behat/Mink/blob/master/src/Behat/Mink/Driver/GoutteDriver.php#L616
as the instance should be `if (!($field instanceof Field\InputFormField && in_array(`
I'm not so experienced with Mink, so I didn't have the courage to create a pull request, as there might be some other reason for this change than just a typo. Anyway, in this commit happened the change: https://github.com/Behat/Mink/commit/7c0e539572105c5bd00ec48f734d34300833c0e4

Hope it helps!