UNPKG

cypress-cucumber-steps

Version:
38 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.When_I_get_children = When_I_get_children; var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor"); var utils_1 = require("../utils"); /** * When I get children: * * ```gherkin * When I get children * ``` * * Get the children of each DOM element within a set of DOM elements. * * The querying behavior of this command matches exactly how [`.children()`](https://api.jquery.com/children/) works in jQuery. * * @example * * ```gherkin * When I get children * ``` * * @remarks * * A preceding step like {@link When_I_find_form | "When I find form"} is required. For example: * * ```gherkin * When I find form * And I get children * And I get last element * And I click * ``` */ function When_I_get_children() { (0, utils_1.setCypressElement)((0, utils_1.getCypressElement)().children()); } (0, cypress_cucumber_preprocessor_1.When)('I get children', When_I_get_children); //# sourceMappingURL=children.js.map