How can I get "request URL" data from the request? #20006
-
How can I get the "request URL" value from the 301 request? Please help me to reach the 'request URL' from the request! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I have tried to do this, but unfortunately, console.log and visit are skipped:
|
Beta Was this translation helpful? Give feedback.
-
For those who are stuck on this like me... :) If the request is: website.com/1234567?payment_success
Here are relevant doc: The thread could be closed |
Beta Was this translation helpful? Give feedback.
For those who are stuck on this like me... :)
I have found a solution that met my needs:
If the request is: website.com/1234567?payment_success
then the code is:
Here are relevant doc:
https://docs.cypress.io/api/commands/intercept#Using-the-yielded-object
The thread could be closed