monking / BrowserMobNodeSelenium

Capture network traffic using NodeJS, BrowserMob Proxy, and Selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Install dependencies npm install

  2. run browsermob-proxy

    1. Option 1: Download BrowserMob Proxy from here https://bmp.lightbody.net/
    2. 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
  3. Run the tests

    1. npm run start
    2. npm run test

About

Capture network traffic using NodeJS, BrowserMob Proxy, and Selenium


Languages

Language:JavaScript 57.9%Language:Batchfile 22.1%Language:PowerShell 8.1%Language:Shell 6.4%Language:HTML 5.4%