Cypress · Method
cy.its
cy.its() reads a property from the value yielded by the previous Cypress command. It supports names, array indexes, and nested paths, then yields the selected value for more commands or assertions.
Last updated
- Since
- 3.7.0 for Number propertyName; 3.8.0 for the options argumen
Syntax
.its(propertyName)
.its(propertyName, options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
.invoke().then()cy.wrap()