You are here

public function NodeElement::setValue 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::setValue()

Sets the value of the form field.

Calling this method on other elements than form fields is not allowed.

Parameters

string|bool|array $value:

See also

NodeElement::getValue for the Formatting of the value for each type of Field API

File

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

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function setValue($value) {
  $this
    ->getDriver()
    ->setValue($this
    ->getXpath(), $value);
}