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