public function getString($command, $target = null, $value = null)
    {
        $result = $this->doExecute($command, $target, $value);

        if (!preg_match('/^OK,/', $result)) {
            throw new Exception("Unexpected response from Selenium server : ".$result);
        }

        return strlen($result) > 3 ? substr($result, 3) : '';
    }
public function getString($command, $target = null, $value = null)
    {
        $result = $this->doExecute($command, $target, $value);

        if (!preg_match('/^OK,/', $result)) {
            throw new Exception("Unexpected response from Selenium server : ".$result);
        }

        return strlen($result) > 3 ? substr($result, 3) : '';
    }
public function getString ( $ command , $ target = null , $ value = null ) { $ result = $ this -> doExecute ( $ command , $ target , $ value ) ; if ( ! preg_match ( '/^OK,/' , $ result ) ) { throw new Exception ( "Unexpected response from Selenium server : " . $ result ) ; } return strlen ( $ result ) > 3 ? substr ( $ result , 3 ) : '' ; }
Executes a command on the server and returns a string.

@param string $command The command to execute
@param string $target  First parameter
@param string $value   Second parameter

@return string The result of the command as a string
Executes a command on the server and returns a string .