I'm running Selenium with Python bindings and I'm trying to figure out a way to detect which events are being sent as Selenium interacts with elements and pages. These events are listed in the network tab in Chrome Developer Tools, under Payload > Query String Parameters. Ideally, I'd like to run the test and print out the events that were sent while the test ran.
I tried capturing HAR data with Browsermob-proxy, but I'm already running a proxy, so it's adding too many layers of complexity for me. I feel like I'm overthinking it, considering I only need to grab values from the dev tools at certain intervals.
The answer to my problem is Selenium-wire
Then you can use the built-in
requestsfunctionality to loop through the requests.