I want to use browsermob to monitor the network connections when doing a GUI test with selenium. I have found some information and documentation here and here and here, but its absolutely unclear how to really use it.
In the documentation it reads:
server = Server("path/to/browsermob-proxy")
But what is that path? Where to find it?
Also I see
java -jar browsermob.jar --port 9090
but no explanation at all as to what this jar file is, if it is part of the browsermob installation, or something unrelated.
I would appreciate if someone can provide a COMPLETE and WORKING example on how to use browsermob, and what ALL I need to install...
./browsermob-proxy -port 8080
I get an error ` ./browsermob-proxy: line 12: $BASEDIR/lib/browsermob-dist-${project.version}.jar: bad substitution` – Kateyserver = Server("/Users/adietz/Projects/Invest/browsermob/browsermob-proxy/browsermob-dist/src/main/scripts/browsermob-proxy") server.start()
gives error:browsermobproxy.exceptions.ProxyServerError: Can't connect to Browsermob-Proxy
– Kateybrowsermob-proxy-py
, and there is no singlejar
file in the entire repository. Do I miss something here? – Katey