UNPKG

cypress-cucumber-steps

Version:
20 lines 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLinkElements = getLinkElements; var options_1 = require("./options"); /** * Get link elements. * * @param text - Link text. * @param selector - Pseudo selector. * @returns - Cypress element. * @private */ function getLinkElements(text, selector, options) { var link = "a:contains(".concat(JSON.stringify(text), ")"); if (selector) { link += ":".concat(selector); } return cy.get(link, (0, options_1.getOptions)(options)); } //# sourceMappingURL=link.js.map