UNPKG

nightwatch

Version:

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

15 lines (13 loc) 380 B
const ProtocolAction = require('./_base-action.js'); /** * Refresh the current page. * * @link /#refresh * @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.pageRefresh(callback); } };