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
127 questions
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,101
  • 8
  • 47
  • 70
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
  • 217
  • 2
  • 10
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
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
  • 437
  • 1
  • 6
  • 19
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,607
  • 7
  • 29
  • 57
3
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,…
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
  • 4,039
  • 12
  • 62
  • 119
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
  • 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
  • 13,329
  • 5
  • 59
  • 76
3
votes
2 answers

browsermob-proxy 'server is refusing connections' error

Selenium Webdriver 2.42.2, browsermob-proxy Beta 9, Windows 7/Firefox I am trying to call the browsermob-proxy API to capture http network requests and after following this example. But, I get the following errors: The proxy server is refusing…
carlc
  • 31
  • 1
  • 2
2
votes
1 answer

Can't connect to Browsermob-proxy ProxyServerError

I'm new to using browsermob-proxy utility tool. Here's my code that runs perfectly fine on my local instance but when I try it on my ec2 instance(using headless browser) gives me an error: raise ProxyServerError("Can't connect to…
Akash
  • 355
  • 5
  • 14
2
votes
2 answers

Browsermob selenium python - JSONDecodeError

Trying to get HAR files for a bunch of urls using browsermob-proxy with selenium in Python. For the basic implementation, I'm using the sample code from Browsermob documentation. My code below from browsermobproxy import Server import psutil import…
n00bPM
  • 21
  • 1
2
votes
0 answers

Browsermob doesn't intercept anything with Sauce Labs through Sauce Connect

I'm trying to switch from Browserstack to Sauce Labs (the former spawns a zombie process in docker which hangs up the whole container). And while everything seems to connect and listen to ports, the HAR is null. My setup is straightforward: on the…
1
2
3
8 9