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