fixed Casper.wait()
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -651,7 +651,7 @@ | ... | @@ -651,7 +651,7 @@ |
651 | this.delayedExecution = true; | 651 | this.delayedExecution = true; |
652 | var start = new Date().getTime(); | 652 | var start = new Date().getTime(); |
653 | var interval = setInterval(function(self, then) { | 653 | var interval = setInterval(function(self, then) { |
654 | if (!new Date().getTime() - start < timeout) { | 654 | if (new Date().getTime() - start > timeout) { |
655 | self.delayedExecution = false; | 655 | self.delayedExecution = false; |
656 | self.log("wait() finished wating for " + timeout + "ms.", "info"); | 656 | self.log("wait() finished wating for " + timeout + "ms.", "info"); |
657 | if (then) { | 657 | if (then) { | ... | ... |
-
Please register or sign in to post a comment