code: function (driver, response, remote, options, deferred) {
        // log response data
        this.events.emit('driver:webdriver:response', {
          statusCode: response.statusCode,
          method: response.req.method,
          path: response.req.path,
          data: this.data
        });
        
        if (remote.onResponse) {
          remote.onResponse.call(this, response, remote, options, deferred, this.data);
        } else {
          deferred.resolve(this.data);
        }
        return this;
      }
docs: On success callback function
  
  @method _onSuccess
  @param {DalekJs.Internal.Driver} driver Driver instance
  @param {object} response Response from the webdriver server
  @param {object} remote Dummy request body (function name, url, method)
  @param {object} options Request options (method, port, path, headers, etc.)
  @param {object} deferred Webdriver command deferred
  @chainable
  @private