UNPKG

nightwatch

Version:

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

23 lines (21 loc) 615 B
const ProtocolAction = require('./_base-action.js'); /** * Retrieve the list of all window handles available to the session. * * @example * this.demoTest = function (browser) { * browser.windowHandles(function(result) { * // An array of window handles. * console.log(result.value); * }); * } * * @link /#get-window-handles * @param {function} callback Callback function which is called with the result value. * @api protocol.window */ module.exports = class Action extends ProtocolAction { command(callback) { return this.transportActions.getAllWindowHandles(callback); } };