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.
SubscribeRelated
.nextAll().nextUntil().prev()