You are here

public function NodeElement::attachFile in Zircon Profile 8

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

Attach file to current node if it's a file input.

Calling this method on any other elements than file input is not allowed.

Parameters

string $path path to file (local):

File

vendor/behat/mink/src/Element/NodeElement.php, line 259

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function attachFile($path) {
  $this
    ->getDriver()
    ->attachFile($this
    ->getXpath(), $path);
}