@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
18 lines • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setPromptText = void 0;
/*! https://github.com/webdriverio/cucumber-boilerplate/blob/master/src/support/action/setPromptText.js */
/**
* Set the text of the current prompt
* @param {String} modalText The text to set to the prompt
*/
async function setPromptText(modalText) {
try {
await browser.sendAlertText(modalText);
}
catch (e) {
fail("A prompt was not open when it should have been open " + e);
}
}
exports.setPromptText = setPromptText;
//# sourceMappingURL=setPromptText.js.map