Commit c10669c1 c10669c14dfc65e787fd6caffe2946b858acc261 by mickaelandrieu

REFS #919 - Refactored casper.forward() to use phantomjs native goForward()

1 parent c49f8a79
...@@ -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
......