nightwatch
Version:
Easy to use Node.js based End-to-End testing solution for browser based apps and websites, using the W3C WebDriver API.
16 lines (14 loc) • 424 B
JavaScript
const ProtocolAction = require('./_base-action.js');
/**
* Navigate backwards in the browser history, if possible.
*
* @method back
* @link /#back
* @param {function} [callback] Optional callback function to be called when the command finishes.
* @api protocol.navigation
*/
module.exports = class Action extends ProtocolAction {
command(callback) {
return this.transportActions.navigateBack(callback);
}
};