public function getValue($xpath) {
    $this->findElement($xpath, 1);
    $javascript = $this->javascriptTemplateRender("get_value.js.twig", array("xpath" => $xpath));
    return $this->browser->evaluate($javascript);
  }
public function getValue($xpath) {
    $this->findElement($xpath, 1);
    $javascript = $this->javascriptTemplateRender("get_value.js.twig", array("xpath" => $xpath));
    return $this->browser->evaluate($javascript);
  }
public function getValue ( $ xpath ) { $ this -> findElement ( $ xpath , 1 ) ; $ javascript = $ this -> javascriptTemplateRender ( "get_value.js.twig" , array ( "xpath" => $ xpath ) ) ; return $ this -> browser -> evaluate ( $ javascript ) ; }
Returns the value of a given xpath element
@param string $xpath
@return string
@throws DriverException
Returns the value of a given xpath element