Commit 4992a55c 4992a55cd0e0e575f5f9e9d0c464a76367a210b9 by Nicolas Perriault

Merge pull request #930 from mickaelandrieu/bug-919-native-forward

REFS #919 - Refactored casper.forward() to use phantomjs native goForward()
2 parents c49f8a79 c10669c1
......@@ -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();
});
};
......