Use the executor instead. ``` php public function takeScreenshot($save_as = null) { $screenshot = base64_decode( $this->executor->execute('takeScreenshot') ); if ($save_as) { file_put_contents($save_as, $screenshot); } return $screenshot; } ```