Cypress · Method
cy.children
Gets the direct children of each DOM element in the current subject. It can filter those children with a selector and supports further chaining.
Last updated
- Since
- 12.0.0
Syntax
.children() | .children(selector) | .children(options) | .children(selector, options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
.find().next().parent().parents().siblings().shadow()