original_string: public function screenshotAsImage($asBase64 = false)
      {
          $image = $this->getDriver()->curl(
              $this->getDriver()->factoryCommand('screenshot', WebDriver_Command::METHOD_GET)
          );
          $image = $image['value'];
          if (!$asBase64) {
              $image = base64_decode($image);
          }
          return $image;
      }
code: public function screenshotAsImage($asBase64 = false)
      {
          $image = $this->getDriver()->curl(
              $this->getDriver()->factoryCommand('screenshot', WebDriver_Command::METHOD_GET)
          );
          $image = $image['value'];
          if (!$asBase64) {
              $image = base64_decode($image);
          }
          return $image;
      }
code_tokens: public function screenshotAsImage ( $ asBase64 = false ) { $ image = $ this -> getDriver ( ) -> curl ( $ this -> getDriver ( ) -> factoryCommand ( 'screenshot' , WebDriver_Command :: METHOD_GET ) ) ; $ image = $ image [ 'value' ] ; if ( ! $ asBase64 ) { $ image = base64_decode ( $ image ) ; } return $ image ; }
docstring: Returns screenshot of current page as binary string.
  
  @param bool $asBase64 - return base64 data, "as is" from server
  
  @return string;
docstring_tokens: Returns screenshot of current page as binary string .