Access The Response Text Yielded By The Plugin cypress-recurse

Published: 05 July 2022
on channel: gleb bahmutov
950
20

If you use cypress-recurse plugin to ping the page before visiting it, you might need to access the text or json from the fetch's response object. This video shows how to do it. In summary:

recurse(
// use fetch
// yield { respones }
)
// the "recurse" yields whatever
// the first function yields, in our case
// it is the { response } object. Let's grab its text
.its('response')
.invoke('text')
.then(console.log)

Find the full source code at https://github.com/bahmutov/live-exam...


On this page of the site you can watch the video online Access The Response Text Yielded By The Plugin cypress-recurse with a duration of hours minute second in good quality, which was uploaded by the user gleb bahmutov 05 July 2022, share the link with friends and acquaintances, this video has already been watched 950 times on youtube and it was liked by 20 viewers. Enjoy your viewing!