Questions tagged [browsermob]

BrowserMob Proxy is a simple utility that makes it easy to capture performance data from browsers.

BrowserMob Proxy uses web automation utilities like Selenium to capture performance data in the HAR format. It can be integrated in a Java application or interacted through the REST interface.

It addition it also can actually control HTTP traffic, such as:

  • blacklisting and whitelisting certain URL patterns
  • simulating various bandwidth and latency
  • remapping DNS lookups
  • flushing DNS caching
  • controlling DNS and request timeouts
  • automatic BASIC authorization
126 questions
5
votes
1 answer

Set proxy for selenium chrome driver in ruby

Browsermob proxy:- https://github.com/jarib/browsermob-proxy-rb I can able to create and set proxy for firefox profile but not on chrome. I don't know which options i have to use for chrome to set proxy. Am using the following code:- For…
Galet
  • 5,853
  • 21
  • 82
  • 148
4
votes
2 answers

The Browsermob-Proxy server process failed to start

I encountered this error when I just start the server. Here's the code: server = Server(r"path\to\browsermob-proxy") server.start() Then it stopped and raised an error like this: browsermobproxy.exceptions.ProxyServerError: The Browsermob-Proxy…
Dexter
  • 41
  • 1
  • 3
4
votes
2 answers

Running browsermob with selenium grid on docker

I am using the python client for browsermob to record traffic of my selenium tests. Selenium grid is in a docker container with images for chrome and firefox. I cant seem to configure the docker images properly to connect to the proxy and the…
4
votes
1 answer

How can I block third-party scripts on Selenium tests?

My Selenium tests are being slowed by third-party scripts that are not necessary to the tests. How can I block them? Preferably I'd like to block requests to everywhere but localhost.
WoodenKitty
  • 6,521
  • 8
  • 53
  • 73
4
votes
1 answer

No headers in HAR response

I parse website 'http://ok.ru'. To get data from the post request I need to send a specific token that is generated by Javascript on the website and this token is contained in headers. So I thought maybe one solution would be to open the website,…
4
votes
1 answer

Python- Using Proxy(Browsermob) with Remote Webdriver

I'm trying to check on the network traffic on a site using Browsermob Proxy. By running the following: I've found that the Proxy server is refusing connections: "the proxy server is refusing connections" "firefox is configured to use a proxy that is…
user3662456
  • 267
  • 2
  • 11
3
votes
2 answers

What kind of base64 is used in HTTP responses?

I'm catching HTTP requests made by Selenium using Browser Mob Proxy (using the browsermob-proxy Python package). In my HAR file, I see this (it should be a Javascript file): "content": { "comment": "", "size": 10908, …
3
votes
0 answers

How to Track a specific request in Selenium using BrowserMob?

I have implemented Selenium with BrowserMob proxy in embedded mode. I have also added a request and response filter to the proxy which successfully filters all the requests and responses. But how do I track a specific request, like implementing a…
3
votes
1 answer

How to remove the header (Via:, 1.1 browsermobproxy) using a wrapper python for Browsermob-proxy + Selenium

Some servers can respond to the Via header. For the purity of the experiment, I want to get rid of it. How it can be made using a wrapper on a python for Browsermob-proxy? That it was better understood, I will result the code: Sorry for my English! …
Dmitriy
  • 31
  • 1
3
votes
2 answers

ERR_EMPTY_RESPONSE in Chrome when use BrowserMobProxy for selenium test

I've created simple method for get network traffic from Chrome: public void saveNetworkTraffic() { System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir") + "/bin/chromedriver"); String sFileName = "networklog.xar"; …
3
votes
1 answer

BrowserMob proxy doesn't blacklist https resources

I am using proxy to exclude third party resources . But I have a problem with all resources which start with https . Could you please suggest any solution ? For example I am trying to exclude static.licdn.com from http://linkedin.com . It change…
nairavs
  • 475
  • 1
  • 7
  • 22
3
votes
0 answers

Understanding Selenium + browsermob-proxy + protractor + AngularJS

What I have: several integration test specs written in Jasmine for my AngularJS app (they navigate through my entire app) What I want: perform a network monitoring of my app and export the data using HAR Naive solution: just write a script which…
Marcos
  • 4,643
  • 7
  • 33
  • 60
3
votes
2 answers

Could not find or load main class net.lightbody.bmp.proxy.Main

Github link:- https://github.com/jarib/browsermob-proxy-rb Am creating a proxy using browsermob proxy by following:- require 'selenium/webdriver' require 'browsermob/proxy' server =…
Galet
  • 5,853
  • 21
  • 82
  • 148
3
votes
5 answers

Can't capture HAR using Python Selenium Script with BrowserMob-Proxy

Goal: I want to run a Selenium Python script through BrowserMob-Proxy, which will capture and output a HAR file capture. Problem: I have a functional (very basic) Python script (shown below). When it is altered to utilize BrowserMob-Proxy to…
Civic_Matt
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

Setting a custom header using BrowserMob-Proxy REST api

I have a browsermob proxy running on port 9091. I am trying to use browsermob-proxy REST API to set a custom header. When I make a request to my app using Selenium via the proxy, I don't see the header printed in my apps console. Below is my code.…
nilesh
  • 14,131
  • 7
  • 65
  • 79
1
2
3
8 9