nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
21 lines (18 loc) • 596 B
JavaScript
const ProtocolAction = require('./_base-action.js');
/**
* Sends keystrokes to a JavaScript prompt() dialog.
*
* @link /#send-alert-text
* @param {string} value Keystrokes to send to the prompt() dialog
* @param {function} [callback] Optional callback function to be called when the command finishes.
* @api protocol.userprompts
* @deprecated In favour of `.alerts.setText()`.
*/
module.exports = class Session extends ProtocolAction {
static get isTraceable() {
return true;
}
command(value, callback) {
return this.transportActions.setAlertText(value, callback);
}
};