parent
8f158f2241
commit
269269a54d
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue