Capture network traffic using NodeJS, BrowserMob Proxy, and Selenium
Examples
This project has test for all browser to capture network traffic from the pageload using NodeJs , BrowserMob Proxy and Selenium
Browser test : Chrome
, Firefox
, IE
, Headless - Chrome
, Headless - Firefox
Testing
-
Install dependencies
npm install
-
run browsermob-proxy
- Option 1: Download BrowserMob Proxy from here https://bmp.lightbody.net/
- Option 2: I have included BrowserMobProxy library under lib folder including powershell script which will import certificate and run the server. Go to lib folder in powershell and run ./run-proxy-server.ps1
-
Run the tests
npm run start
npm run test