public function BrowserKitDriver::setValue in Zircon Profile 8.0
Same name and namespace in other branches
- 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\DriverCode
public function setValue($xpath, $value) {
$this
->getFormField($xpath)
->setValue($value);
}