I want to capture the response of API calls the browser makes when loading data and validate that data for my automated tests. I am using webdriverio for my automation. Is there any way I can do this ?

$.ajaxSetup({
complete: function(xhr, textStatus) {
console.log(textStatus)
},
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With