You are here

public function CoreDriver::attachFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Driver/CoreDriver.php \Behat\Mink\Driver\CoreDriver::attachFile()

Attaches file path to file field located by it's XPath query.

Parameters

string $xpath:

string $path:

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides DriverInterface::attachFile

See also

\Behat\Mink\Element\NodeElement::attachFile

2 methods override CoreDriver::attachFile()
BrowserKitDriver::attachFile in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Attaches file path to file field located by it's XPath query.
PhantomJSDriver::attachFile in vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php
Upload a file to the browser

File

vendor/behat/mink/src/Driver/CoreDriver.php, line 223

Class

CoreDriver
Core driver. All other drivers should extend this class for future compatibility.

Namespace

Behat\Mink\Driver

Code

public function attachFile($xpath, $path) {
  throw new UnsupportedDriverActionException('Attaching a file in an input is not supported by %s', $this);
}