Skip to content
masterclass Buddy

Cypress · Method

cy.eq

Use cy.eq() after a command that yields DOM elements to select one element by its zero-based position. Negative indexes count from the end, and Cypress retries the query until the element or chained assertions are ready.

Last updated

Since
12.0.0

Syntax

.eq(index)
.eq(indexFromEnd)
.eq(index, options)
.eq(indexFromEnd, options)

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

Subscribe
  • filter()
  • first()
  • last()
  • next()
  • prev()
  • select()

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