Skip to content
masterclass Buddy

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.

Subscribe
  • .find()
  • .next()
  • .parent()
  • .parents()
  • .siblings()
  • .shadow()

Source: cy.children() | Cypress API Documentation. Checked 2026-11-03.