nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
26 lines (25 loc) • 694 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
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);
}
};