Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 269269a

Browse files
committed
chore: revert sendKeys change from e186288
closes #1175
1 parent 8f158f2 commit 269269a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

public/docs/_examples/protractor.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,15 @@ function itIf(cond, name, func) {
9999
}
100100

101101
// Hack - because of bug with protractor send keys
102+
// Hack - because of bug with send keys
102103
function sendKeys(element, str) {
103104
return str.split('').reduce(function (promise, char) {
104-
return promise.resolve(element.sendKeys(char));
105+
return promise.then(function () {
106+
return element.sendKeys(char);
107+
});
105108
}, element.getAttribute('value'));
106-
}
109+
// better to create a resolved promise here but ... don't know how with protractor;
110+
}
107111

108112
function Reporter(options) {
109113
var _defaultOutputFile = path.resolve(process.cwd(), "../../", 'protractor-results.txt');

0 commit comments

Comments
 (0)