Samples/Client/Angular2/protractor.config.js
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;
  }
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;
  }
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; }
Hack - because of bug with protractor send keys
Hack - because of bug with protractor send keys