public function getAttribute($xpath, $name) {
    $elements = $this->findElement($xpath, 1);
    return $this->browser->attribute($elements["page_id"], $elements["ids"][0], $name);
  }
public function getAttribute($xpath, $name) {
    $elements = $this->findElement($xpath, 1);
    return $this->browser->attribute($elements["page_id"], $elements["ids"][0], $name);
  }
public function getAttribute ( $ xpath , $ name ) { $ elements = $ this -> findElement ( $ xpath , 1 ) ; return $ this -> browser -> attribute ( $ elements [ "page_id" ] , $ elements [ "ids" ] [ 0 ] , $ name ) ; }
Gets the attribute value of a given element and name
@param string $xpath
@param string $name
@return string
@throws DriverException
Gets the attribute value of a given element and name