Skip to content

Why are return values accessible in Cypress if they cannot be used meaningfully? #28771

Discussion options

You must be logged in to vote

You can use the return value by passing it from one command to the next (chaining commands) or by using something like .then() and and using a closure

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Orchi1904
Comment options

Answer selected by Orchi1904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants