public function FormManipulationTrait::getValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/jcalderonzumba/mink-phantomjs-driver/src/FormManipulationTrait.php \Zumba\Mink\Driver\FormManipulationTrait::getValue()
Returns the value of a given xpath element
Parameters
string $xpath:
Return value
string
Throws
File
- vendor/
jcalderonzumba/ mink-phantomjs-driver/ src/ FormManipulationTrait.php, line 20
Class
- FormManipulationTrait
- Trait FormManipulationTrait @package Zumba\Mink\Driver
Namespace
Zumba\Mink\DriverCode
public function getValue($xpath) {
$this
->findElement($xpath, 1);
$javascript = $this
->javascriptTemplateRender("get_value.js.twig", array(
"xpath" => $xpath,
));
return $this->browser
->evaluate($javascript);
}