cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
20 lines • 575 B
JavaScript
;
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