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

199 questions
3
votes
1 answer

Browsermob - Python - Windows Java process stay running after proxy.close and server.stop

I have a python - selenium - browsermob script which is waiting and listening a server for a task on standby inside a while loop until termination. When task is assigned, it calls a function which at each call creates new browsermob proxy server…
Sinan Sari
  • 51
  • 1
  • 8
3
votes
1 answer

How to fix "Could not read Browsermob-Proxy json"?

I am trying to use browsermob-proxy to monitor all requests and responses for selenium tests. In my case, I am running the selenium tests with the py.test framework inside a docker image on jenkins. I am using the following…
Alex
  • 41,580
  • 88
  • 260
  • 469
3
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
  • 31
  • 1
3
votes
1 answer

Standalone vs embedded Browsermob proxy for cloud-based tests (Sauce Labs/Browserstack)

I made a working test locally with embedded Browsermob proxy server. Nothing new, but still here is the sample code. _server = new BrowserMobProxyServer() _server.start(); Proxy proxy = ClientUtil.createSeleniumProxy(_server); …
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
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
2
votes
0 answers

use mitmproxy how to get response data in python code like Browsermob-Proxy method with out alternative file or database

I have completed a tiny selenium spider project with Browsermob-Proxy, but the Browsermob-Proxy written by java, I need to package whole project file into a single executable file, but use Browsermob-Proxy is unavailable job! So I plan use mitmproxy…
2
votes
0 answers

I'm using browsermobproxy in selenium (Python) and I'm getting an error when doing server.start()

First, I get this error: browsermobproxy.exceptions.ProxyServerError: The Browsermob-Proxy server process failed to start. Check <_io.TextIOWrapper name='D:\\Users\\jackg\\Desktop\\Python Code\\DataCampSolver\\server.log' mode='w'…
JackElia
  • 140
  • 9
2
votes
1 answer

C# Selenium WebDriver - Solution to Wait for Outstanding HTTP Requests

Background When writing front-end tests, we often need to wait until the web-application is done fetching data and updating the DOM before we want to interact with the page. With Selenium C#, this means a lot of explicit waits on the state of the…
Tyler Nielsen
  • 605
  • 1
  • 7
  • 21
2
votes
1 answer

Enriching headers via a proxy using java and Selenium

I'm working on an automated web test stack using Selenium, Java and testNG. For authentication and safety reasons, I need to enrich the headers of the website I am accessing through Kubernetes. For example, I can successfully use this CURL command…
Batou
  • 98
  • 1
  • 8
2
votes
0 answers

Selenium and BrowserMob Proxy for capture request and response

UPDATE - Resolved this issue by using System.setProperty("webdriver.chrome.silentOutput", "true"); I am trying to capture browser request and response using selenium and browser mob proxy . Have tired most of the options and combination…
rarunp04
  • 321
  • 2
  • 9
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
0 answers

How can I use a proxy IP when scraping with Selenium and Browsermob-Proxy in Python?

I want to be able to monitor network requests when web-scraping using Selenium and Browsermob-Proxy in python but I'm unable to change the IP of my chrome browser so the requests going to the website aren't coming from my IP address and instead…
John DeBritto
  • 141
  • 3
  • 12
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…
1
2
3
13 14