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.
SubscribeRelated
.invoke().its().should().spread().then()