@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
18 lines • 713 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkElementExists = void 0;
const checkIfElementExists_1 = require("../lib/checkIfElementExists");
/**
* Check if the given element exists
* @param {String} isExisting Whether the element should be existing or not (an or no)
* @param {String} selector Element selector
*/
async function checkElementExists(isExisting, selector) {
let falseCase = true;
if (isExisting === "an") {
falseCase = false;
}
await (0, checkIfElementExists_1.checkIfElementExists)(selector, falseCase);
}
exports.checkElementExists = checkElementExists;
//# sourceMappingURL=checkElementExists.js.map