public function visit($url) { $this->saveScreenshot(); parent::visit($url); $this->saveScreenshot(); }