Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandresalome committed Oct 31, 2011
1 parent 02ea6fa commit 64d2313
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Behat/Mink/Driver/SeleniumDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,10 @@ public function isChecked($xpath)

/**
* @see Behat\Mink\Driver\DriverInterface::attachFile()
*
* @throws Behat\Mink\Exception\UnsupportedDriverActionException action is not supported by this driver
*/
public function attachFile($xpath, $path)
{
throw new UnsupportedDriverActionException('Uploading file is not supported by %s', $this);
$this->browser->attachFile(SeleniumLocator::xpath($xpath), 'file://'.$path);
}

/**
Expand Down

0 comments on commit 64d2313

Please sign in to comment.