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) {
Casper.prototype.forward = function forward() {
"use strict";
this.checkStarted();
return this.then(function _step() {
return this.then(function() {
this.emit('forward');
this.evaluate(function _evaluate() {
history.forward();
});
this.page.goForward();
});
};
......