UNPKG

cypress-cucumber-steps

Version:
46 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.When_I_get_first_element = When_I_get_first_element; var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor"); var utils_1 = require("../utils"); /** * When I get first element: * * ```gherkin * When I get first element * ``` * * @example * * ```gherkin * When I get first element * ``` * * With [options](https://docs.cypress.io/api/commands/first#Arguments): * * ```gherkin * When I get first element * | log | true | * | timeout | 4000 | * ``` * * @remarks * * This follows steps like {@link When_I_find_links_by_text | "When I find links by text"} and precedes steps like {@link When_I_click | "When I click"}. For example: * * ```gherkin * When I find links by text "Link" * And I get first element * And I click * ``` * * @see * * - {@link When_I_get_nth_element | When I get nth element} * - {@link When_I_get_last_element | When I get last element} */ function When_I_get_first_element(options) { (0, utils_1.setCypressElement)((0, utils_1.getCypressElement)().first((0, utils_1.getOptions)(options))); } (0, cypress_cucumber_preprocessor_1.When)('I get first element', When_I_get_first_element); //# sourceMappingURL=first.js.map