code: function sendKeys(element, str) {
    return str.split('').reduce(function (promise, char) {
      return promise.then(function () {
        return element.sendKeys(char);
      });
    }, element.getAttribute('value'));
    // better to create a resolved promise here but ... don't know how with protractor;
    }
docs: Hack - because of bug with protractor send keys