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