You are here

public function BrowserKitDriver::setValue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::setValue()

Sets element's value by it's XPath query.

Parameters

string $xpath:

string|bool|array $value:

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides CoreDriver::setValue

See also

\Behat\Mink\Element\NodeElement::setValue

File

vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php, line 414

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

public function setValue($xpath, $value) {
  $this
    ->getFormField($xpath)
    ->setValue($value);
}