BrowserMob Proxy Plugin
Another useful tool that is fully integrated with the Selenium WebDriver is called BrowserMob Proxy, and it is developed by Neustar, Inc. This free open source add-on allows users to capture performance data for web applications under test, identify network bottlenecks, modify the behavior of the browser under test, and change traffic patterns on the fly.
Users will set up this proxy server in their Selenium test environment and cast the WebDriver to it, allowing them to manipulate HTTP requests and responses during the test run. It uses the HTTP Archive (HAR) format to capture data.
Note
The BrowserMob Proxy Plugin is developed by (c) 2017 Neustar, Inc and is located at https://bmp.lightbody.net/.
Getting started
It is fairly easy to get started using the tool. You would first instantiate the proxy service in your WebDriver driver class code, pass that proxy capability to your driver, and turn the capture mode on to retrieve the HTTP responses and requests being sent...