I am currently working on learning selenium and my current requirement is to read an API JSON response when a certain button inside my application UI is clicked. I mainly use Java and selenium but I have the flexibility in using any other language.
The click triggers an event which hits an API and a response is received. Hitting the API directly without going through the UI is not an option. Additionally, when using Developer Tools in chrome, i can see the response in the "Network" tab. If there is any way that i could just read the "Network" tab, that is also acceptable.