chore: revert `sendKeys` change from e1862887

closes #1175
This commit is contained in:
Ward Bell 2016-04-25 15:46:59 -07:00
parent 8f158f2241
commit 269269a54d
1 changed files with 6 additions and 2 deletions

View File

@ -99,11 +99,15 @@ function itIf(cond, name, func) {
}
// Hack - because of bug with protractor send keys
// Hack - because of bug with send keys
function sendKeys(element, str) {
return str.split('').reduce(function (promise, char) {
return promise.resolve(element.sendKeys(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 Reporter(options) {
var _defaultOutputFile = path.resolve(process.cwd(), "../../", 'protractor-results.txt');