Permalink
Browse files

Merge branch 'hotfix/1.0.4'

  • Loading branch information...
2 parents d8053c0 + 2718932 commit da3aa3040b6665059334c8266efd80fe64e7d506 @everzet everzet committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Behat/Mink/Driver/GoutteDriver.php
View
2 src/Behat/Mink/Driver/GoutteDriver.php
@@ -332,7 +332,7 @@ public function click($xpath)
if ('a' === $type) {
$this->client->click($node->link());
- } elseif('input' === $type) {
+ } elseif('input' === $type || 'button' === $type) {
$buttonForm = $node->form();
foreach ($this->forms as $form) {
if ($buttonForm->getFormNode()->getLineNo() === $form->getFormNode()->getLineNo()) {

0 comments on commit da3aa30

Please sign in to comment.