Skip to content
masterclass Buddy

Cypress · Method

cy.next

cy.next() gets the immediately following sibling of each current DOM element. You can filter those siblings with a selector and continue chaining Cypress commands.

Last updated

Syntax

.next() · .next(selector) · .next(options) · .next(selector, options)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • .nextAll()
  • .nextUntil()
  • .prev()

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