Permalink
Browse files

closes #209

  • Loading branch information...
1 parent 99979c6 commit fdd82c7d6846a3439c061b23efeda1af0c8ca368 @everzet everzet committed Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Behat/Mink/Driver/GoutteDriver.php
@@ -294,7 +294,7 @@ public function getAttribute($xpath, $attr)
*/
public function getValue($xpath)
{
- if (in_array($this->getAttribute($xpath, 'type'), array('submit', 'image'))) {
+ if (in_array($this->getAttribute($xpath, 'type'), array('submit', 'image', 'button'))) {
return $this->getAttribute($xpath, 'value');
}
@@ -630,7 +630,7 @@ private function mergeForms(Form $to, Form $from)
$nodeReflection->setAccessible(true);
$valueReflection->setAccessible(true);
- if (!($field instanceof Field\InputtoField && in_array(
+ if (!($field instanceof Field\InputFormField && in_array(
$nodeReflection->getValue($field)->getAttribute('type'),
array('submit', 'button', 'image')
))) {

0 comments on commit fdd82c7

Please sign in to comment.