public function click($xpath) {
    $elements = $this->findElement($xpath, 1);
    $this->browser->click($elements["page_id"], $elements["ids"][0]);
  }
public function click($xpath) {
    $elements = $this->findElement($xpath, 1);
    $this->browser->click($elements["page_id"], $elements["ids"][0]);
  }
public function click ( $ xpath ) { $ elements = $ this -> findElement ( $ xpath , 1 ) ; $ this -> browser -> click ( $ elements [ "page_id" ] , $ elements [ "ids" ] [ 0 ] ) ; }
Clicks if possible on an element given by xpath
@param string $xpath
@return mixed
@throws DriverException
Clicks if possible on an element given by xpath