UNPKG

nightwatch

Version:

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

25 lines (23 loc) 610 B
const ProtocolAction = require('./_base-action.js'); /** * Returns a list of the currently active sessions. * * @example * this.demoTest = function (browser) { * browser.sessions(function(result) { * console.log(result.value); * }); * } * * @method sessions * @editline L166 * @section sessions * @syntax .sessions(callback) * @param {function} callback Callback function which is called with the result value. * @api protocol.sessions */ module.exports = class Sessions extends ProtocolAction { command(callback) { return this.transportActions.getSessions(callback); } };