public function evaluateScript($script) { $this->saveScreenshot(); parent::evaluateScript($script); $this->saveScreenshot(); }