Working with BrowserMob Proxy

Patrick Lightbody, one of the core originators of Selenium and the creator of Selenium RC with Paul Hammant, created the BrowserMob proxy while working on his start-up, BrowserMob. BrowserMob Proxy allows you to control the way traffic is filtered to the browser.

We can also change the headers that are supplied to the server. This allows us to do a number of things.

Creating and starting a proxy

When working with BrowserMob Proxy, we will need to make sure that we start the proxy so that we can use the API and change what we need.

We will need to start the proxy and make sure that we can then interact with it:

  1. Create a new Project in IntelliJ.
  2. Add the BrowserMob JAR files to the project so that we can use it:
    ProxyServer ...

Get Learning Selenium Testing Tools - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.