docs: function (name, expected, hash, res) {
      var deferred = Q.defer();
      var cookies = JSON.parse(res).value;
      var cookie = false;
      cookies.forEach(function (cookieItem) {
        if (cookieItem.name === name) {
          cookie = cookieItem.value;
        }
      });
  
      this.events.emit('driver:message', {key: 'cookie', value: cookie, name: name, expected: expected, uuid: hash, hash: hash});
      deferred.resolve();
      return deferred.promise;
    }