O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – starting the proxy

We are going to 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 JARs to the project so that we can use it:
    ProxyServer proxy = New ProxyServer(9876);
    proxy.start();
  3. When we want to stop the server we just call:
    proxy.stop()

What just happened?

We have successfully started the server by passing in the port. The server needs to be started before we can do any of the different tasks that we will be doing in future sections of the book.

Capturing network traffic

One of the most useful things in Selenium Remote Control is the ability to capture the network traffic of the application that you are testing. It was removed since it is not required ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required