I have created an example of how we can use the browser.mock() function in WebdriverIO
You can use this to
- Capture Network Logs
- Assert Request parametes
- Assert Response parameters
- Store all the response in a seperate file
You can watch the same in the below link https://www.youtube.com/watch?v=Be9IPyxHmLs