Merge pull request #930 from mickaelandrieu/bug-919-native-forward
REFS #919 - Refactored casper.forward() to use phantomjs native goForward()
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -913,11 +913,9 @@ Casper.prototype.fillXPath = function fillXPath(formSelector, vals, submit) { | ... | @@ -913,11 +913,9 @@ Casper.prototype.fillXPath = function fillXPath(formSelector, vals, submit) { |
913 | Casper.prototype.forward = function forward() { | 913 | Casper.prototype.forward = function forward() { |
914 | "use strict"; | 914 | "use strict"; |
915 | this.checkStarted(); | 915 | this.checkStarted(); |
916 | return this.then(function _step() { | 916 | return this.then(function() { |
917 | this.emit('forward'); | 917 | this.emit('forward'); |
918 | this.evaluate(function _evaluate() { | 918 | this.page.goForward(); |
919 | history.forward(); | ||
920 | }); | ||
921 | }); | 919 | }); |
922 | }; | 920 | }; |
923 | 921 | ... | ... |
-
Please register or sign in to post a comment