Skip to content
masterclass Buddy

Cypress · Method

cy.then

cy.then() gives a callback the subject from the previous Cypress command. Its return value, a returned Cypress chain, or a resolved Promise controls the subject passed to the next command.

Last updated

Since
0.3.3

Syntax

.then(callbackFn)
.then(options, callbackFn)

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

Subscribe
  • .and()
  • .each()
  • .invoke()
  • .its()
  • .should()
  • .spread()
  • Cypress.$
  • Aliases

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