public function click($xpath) { $this->saveScreenshot(); $this->highlight($xpath); parent::click($xpath); $this->saveScreenshot(); }