public function maximizeWindow($name = null) { $this->saveScreenshot(); parent::maximizeWindow($name); $this->saveScreenshot(); }