I am using Selenium2/WebDriver to test my web applications. All the tests are written in Java and run with Maven.
While opening a page with webdriver I\'d like to ca
I've been working recently on this kind of proxy. Project is pretty fresh, I'm still working on documentation but it may be worth checking. Sources and examples are here
com.moxproxy
moxproxy.core
1.0.2
MoxProxy proxy = LocalMoxProxy.builder()
.withPort(89)
.build();
proxy.startServer();
Setup selenium webdriver to use proxy on localhost with port 89 and run test
Collect traffic
List requestTraffic = proxy.getAllRequestTraffic();
List responseTraffic = proxy.getAllResponseTraffic();
Beside collecting traffic proxy provides posibility to modify requests and responses - details on github