Questions tagged [browsermob-proxy]

BrowserMob Proxy (BMP) is based on technology developed in the Selenium open source project and a commercial load testing and monitoring service originally called BrowserMob and now part of Neustar.

The proxy is a free (Apache 2.0 license) utility that works well with Selenium or can be used independently.

It can capture performance data for web apps (via the HAR format), as well as manipulate browser behavior and traffic, such as whitelisting and blacklisting content, simulating network traffic and latency, and rewriting HTTP requests and responses.

For details and download: http://bmp.lightbody.net/ https://github.com/webmetrics/browsermob-proxy/downloads

202 questions
2
votes
0 answers

Selenium and BrowserMobProxy don't show and set browser referer in Java, how to it

public class Test { public static void main(String[] args) throws Exception{ String driverGoogleChromePath = "D:\\Project Doc\\Jar\\selenium\\chromedriver_win32\\chromedriver.exe"; String refererurl = "http://www.iteye.com/"; …
javaman01
  • 21
  • 2
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
1 answer

JNI-error occuring when trying to start BrowserMobProxyServer in Embedded Mode (Java, Maven)

Hey guys my first post here.. I'm trying to setup Selenium and Browsermob Proxy in Java in Embedded Mode (gotta to say that I never used Maven, Selenium or BrowserMob Proxy before). Following the Github instructions of BrowserMob Proxy I set up a…
2
votes
1 answer

python selenium browsermob-proxy and interceptor

I use python with selenium and browsermob-proxy. When action occurs ( click, submit), I wish to change http request url. I don't understand browsermob-proxy explanation: request_interceptor(js)[source] Executes the java/js code against each…
sodoit g
  • 21
  • 1
  • 4
2
votes
1 answer

Selenium reading XHR response

I am trying to scrape Instagram with selenium using chrome webdriver. I need to get XHR response info and i tried "browsermob-proxy" and that info wasnt enough: server = Server("/home/doruk/Downloads/browsermob-proxy…
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
1 answer

Can`t get response body in HAR, Browsermobproxy + selenium + FireFox in Python

from selenium import web driver from browsermobproxy import Server from selenium.webdriver.common.by import By import json import time server = Server(r'D:\browsermob-proxy-2.1.4\bin\browsermob-proxy.bat') server.start() proxy =…
chbr
  • 21
  • 1
2
votes
2 answers

How to fix "Can't connect to Browsermob-Proxy" on a mac?

Running on a mac I am trying to use browsermob-proxy to monitor connections during python-selenium tests. I downloaded the java implementation 2.1.4 from here and pip installed the python wrapper ( browsermobproxy). The full example code is here…
Alex
  • 34,021
  • 64
  • 178
  • 371
2
votes
1 answer

Blocking 3rd party urls during page load using protractor

I want to block all the 3rd party crap(like faceboook and google analytics api) during the page load to speed up the execution. Many has suggested using proxy is the best way to do that. Has any one done this before? And can you please suggest me…
Galileo123
  • 143
  • 3
  • 15
2
votes
1 answer

BrowserMob Proxy + Apache HttpClient: Receiving javax.net.ssl.SSLHandshakeException

my goal is to use BMP to verify that Google Analytics calls are being triggered upon sending certain requests to my application (for now I'm just trying to hit yahoo.com and make a request). Preferably I'd like to do this without going thru…
user1599401
  • 65
  • 1
  • 1
  • 10
2
votes
0 answers

SSL Certificate Errors With BrowserMob-Proxy on Firefox 50

I am having trouble getting https requests to pass through BrowserMob-Proxy with Firefox 50. However with Firefox ESR45.4 there is no such issue. As a simple test I started BrowserMob-Proxy and created an instance on port 8088. I then launched…
darkrat
  • 665
  • 6
  • 14
2
votes
1 answer

Force Selenium Chrome Driver to use QUIC instead of TCP

I am working on downloading HAR from Chrome for YouTube through Selenium Python Script. Code Snippet: chrome_options =…
2
votes
1 answer

Browsermob har timings seem off

I am able to get Selenium driving Starting ChromeDriver 2.23.409699 via browsermob-proxy-2.1.2 and can access the HAR data however the timings seem strange particularly with SSL sites. For example the first fetch is made to the website itself, which…
morleyc
  • 2,228
  • 9
  • 35
  • 85
2
votes
1 answer

Capture network traffic - protractor

I have used Browermobpoxy with Selenium(Java) to capture the network traffic from client (Browser), it worked so good. We recently inclined towards Protractor, My Question is 1) Is there a good NodeJS library available? 2) Is it possible to use the…
Barney
  • 1,584
  • 1
  • 14
  • 31
2
votes
0 answers

browsermob-proxy not connecting

I have been trying to capture some HAR information from a website. I ran across browsermob-proxy, but I can't seem to get it to work. Below is my code: from browsermobproxy import Server server =…
Pieter
  • 107
  • 1
  • 9
1 2
3
13 14