public function getHtml($xpath) {
    $elements = $this->findElement($xpath, 1);
    //allText works only with ONE element so it will be the first one
    return $this->browser->allHtml($elements["page_id"], $elements["ids"][0], "inner");
  }
public function getHtml($xpath) {
    $elements = $this->findElement($xpath, 1);
    //allText works only with ONE element so it will be the first one
    return $this->browser->allHtml($elements["page_id"], $elements["ids"][0], "inner");
  }
public function getHtml ( $ xpath ) { $ elements = $ this -> findElement ( $ xpath , 1 ) ; //allText works only with ONE element so it will be the first one return $ this -> browser -> allHtml ( $ elements [ "page_id" ] , $ elements [ "ids" ] [ 0 ] , "inner" ) ; }
Returns the inner html of a given xpath
@param string $xpath
@return string
@throws DriverException
Returns the inner html of a given xpath