Skip to content
masterclass Buddy

Cypress · Method

cy.wrap

cy.wrap() yields an object, element, or promise value as a Cypress subject. For promises, it waits for resolution before continuing.

Last updated

Since
0.4.5

Syntax

cy.wrap(subject)
cy.wrap(subject, options)

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

Subscribe
  • .invoke()
  • .its()
  • .should()
  • .spread()
  • .then()

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