public function getOuterHtml($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], "outer");
  }
public function getOuterHtml($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], "outer");
  }
public function getOuterHtml ( $ 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 ] , "outer" ) ; }
Gets the outer html of a given xpath
@param string $xpath
@return string
@throws DriverException
Gets the outer html of a given xpath