UNPKG

nightwatch

Version:

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

16 lines (14 loc) 496 B
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 */ module.exports = class Session extends ProtocolAction { command(value, callback) { return this.transportActions.setAlertText(value, callback); } };