Skip to content
masterclass Buddy

Cypress · Method

cy.last

Selects the final DOM element from a Cypress subject set. It can be chained with assertions, queries, and actions.

Last updated

Since
12.0.0

Syntax

.last()  
.last(options)

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

Subscribe
  • .eq()
  • .filter()
  • .first()

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