properly return promise

This commit is contained in:
Joe Fleming 2015-11-09 15:06:33 -07:00
parent fe10e6f916
commit ade13d05ec

View file

@ -92,8 +92,8 @@ define(function (require) {
getApp: function () {
var self = this;
return self.tryForTime(5000, function () {
self.remote.findByCssSelector('.content > .application');
return self.tryForTime(3000, function () {
return self.remote.findByCssSelector('.content > .application');
})
.then(function () {
return self.runScript(function () {