mike10004 / selenium-traffic-example

Example of capturing network traffic with Selenium and Browsermob-proxy
MIT License
1 stars 1 forks source link

Capturing network traffic with Selenium and Firefox or Chrome

This project is an example of how to capture network traffic using Selenium WebDriver with Browsermob-proxy. Unit tests employing Firefox and Chrome webdrivers capturing both HTTP and HTTPS traffic are included.

The primary reason this project is shared is that many Selenium traffic capture examples and how-tos suggest the process is rather simple, but in practice, at least with the version of Firefox the author has, the following problems were encountered:

This project is a working demonstration of network traffic capture that is small enough to comprehend but shows a fair number of ways you can customize it for your needs.