SimpleSeleniumRemoteControl::__call PHP Method

__call() public method

public __call ( $method, $arguments )
    public function __call($method, $arguments)
    {
        $response = $this->cmd($method, $arguments);
        foreach ($this->_commandMap as $type => $commands) {
            if (!in_array($method, $commands)) {
                continue;
                $type = null;
            }
            break;
        }
        switch ($type) {
            case 'bool':
                return substr($response, 0, 2) == 'OK' ? true : false;
                break;
            case 'string':
            default:
                return $response;
        }
    }