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
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
  • 395
  • 5
  • 16
2
votes
1 answer

What should be the path of browsermob-proxy when installed as pypi package

$pip install browsermob-proxy Downloaded and extracted the binary from https://bmp.lightbody.net to /Users/ishandutta2007/Downloads/browsermob-proxy-2.1.4/ from browsermobproxy import Server dict = {'port': 8090} server = Server(options=dict) server…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
2
votes
1 answer

Har file always returns empty when run via browsermob proxy in selenium

I'm trying to read sources of page traversed during selenium replay via browsermob proxy but I always get an empty har file. Selenium 3.141 browsermob-core 2.1.5 jar Below is my code. If I set WebDriver driver = new ChromeDriver(options); page gets…
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
  • 2
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…
2
votes
5 answers

Selenium (Chrome) and BrowserMob doesn't work for https

I have been trying to integrate BrowserMob to my selenium tests. It works fine with website that work on http, but with https websites the browsers stop working and the HAR file doesn't contain any requests. When navigating to a https site I get…
Madis Kangro
  • 293
  • 3
  • 12
2
votes
2 answers

Capture network traffic through proxy with Appium and C#

I have spent a lot of time browsing for a solution to my problem: I am testing an Android app and will be testing the same app on iOS too very soon, using Appium and C#. My app receives response from the server, which I would want to go through a…
Sanu
  • 105
  • 2
  • 13
2
votes
1 answer

browsermob har file precision

I'm using browsermob with selenium to create a har file then trying to analyze the file. Looking in the file I'm getting timing like: 'startedDateTime': '2016-05-31T14:37:06.752-06:00' This is great and all but I'd like more precision, out to the…
supakadoo
  • 53
  • 5
2
votes
1 answer

Progammatic browsing performance issues

I'm using Selenium (in Java) to do programmatic browsing (Firefox) and, to speed up page loading, I'm going through a programmatic Java proxy running in the same application (Browsermob) to prevent the loading of external content (ads, etc) as I…
Tom
  • 1,375
  • 3
  • 24
  • 45
2
votes
2 answers

WebdriverIO & Browsermob

I'm currently trying to use Browsermob with WebdriverIO and I found this code on another answer, but when I run it, the firefox browser comes up and I see activity in the console windows I have selenium and browsermob-proxy running, but it does not…
Van Patton
  • 59
  • 8
2
votes
0 answers

How to get HAR from Selenium SafariDriver browser via browsermob-proxy?

I am trying to get HAR object from Safari driver. I have created a driver object via Selenium but when I am getting entries from the har object, it is empty. What is the issue? Who know how to get HAR from Selenium SafariDriver browser? ... …
NaneNare
  • 45
  • 1
  • 7
1
vote
1 answer

Tried reading Request Headers with Browsermob + Selenium in Java but only got empty har

My goal is to read the request headers of the app portal. Am using browsermob-core with selenium, but the entries in har always comes empty. I tried removing the headless arg and also tried using a separate SSLProxy for BMP, but still the har is…
1
vote
1 answer

Is there any way to capture selenium request headers with python?

I want to capture an authorization header from an outgoing request, either directly with selenium or through a proxy. Methods I've tried: Getting request log with driver.get_log('performance') => Only some requests seem to be indexed, and none…
1
vote
0 answers

Open App Store while connected to BrowserMob proxy

I'm using BrowserMob proxy to monitor iOS device network data - HTTP and HTTPS requests. The problem is that when I try to open App Store on the device, the requests are blocked by App Store (because of SSL pinning). I've encountered this issue…
1 2
3
8 9