UNPKG

nightwatch

Version:

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

18 lines (17 loc) 641 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ProtocolAction = require('./_base-action.js'); /** * Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog. * * @link /#get-alert-text * @param {function} callback Callback function which is called with the result value. * @returns {string} The text of the currently displayed alert. * @api protocol.userprompts * @deprecated In favour of `.alerts.getText()`. */ module.exports = class Session extends ProtocolAction { command(callback) { return this.transportActions.getAlertText(callback); } };