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
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
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,…
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
  • 434
  • 4
  • 18
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
  • 48
  • 6
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
  • 171
  • 1
  • 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
  • 355
  • 5
  • 14
2
votes
0 answers

Configure BrowserMobProxy in C#

Can anyone provide a proper example on how to configure BrowserMobProxy with Selenium Webdriver in C#? Everywhere i search, it mostly provides samples using Java whereas our framework is in C# and on top i want to use BrowserMobPRoxy.This is so I…
Aarthy
  • 61
  • 4
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
  • 129
  • 2
  • 11
2
votes
0 answers

Selenium + Browsermob Proxy, cannot capture bodies of some HTTPS responses

I need to capture the body of a response packet sent to my Selenium browser from BrowserMob proxy. BrowserMob is capturing the response body for only some requests (and not for the ones I need to capture) and I can't figure out why. I am using…
deterjan
  • 336
  • 2
  • 14
2
votes
1 answer

Selenium browsermob proxy says "Warning: Potential Security Risk Ahead"

I am running my test case using browsermob proxy.I am running my test case in selenium grid.Using Browsermob proxy i am getting ssl error. When I am running the test on chrome, Chrome shows unsecured massage. For Firefox, it shows Potential Security…
Zakaria Shahed
  • 2,059
  • 3
  • 16
  • 39
2
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
  • 41
  • 8
2
votes
1 answer

How to know if my Custom HTTP headers are being passed?

So, I have been struggling with passing custom HTTP header for some time now. I am creating a script (Python) to Open a URL with Custom headers like {'Referer': 'https://google.com', 'X-Forwarded-For': '47.29.76.109', 'User-Agent':…
Kartikey Singh
  • 734
  • 8
  • 20
2
votes
0 answers

Browsermob Proxy + Selenium + Ruby setup giving 550 response

So I am looking at trying to integrate Browsermob into a Ruby project so i can edit http responses. I have been following the setup with Selenium instructions from the Github and another article I found about performance testing - which I also want…
2
votes
1 answer

Browsermob Proxy + Watir not capturing traffic continuously

I have the BrowserMob Proxy set up correctly with Watir and it is capturing traffic and saving the HAR file; however, what it's not doing is that it's not capturing the traffic continuously. So following is what I'm trying to achieve: Go to…
KhalDrogo
  • 43
  • 1
  • 1
  • 4
2
votes
1 answer

Get requests body using selenium and proxies

I want to be able to get a body of the specific subrequest using a selenium behind the proxy. Now I'm using python + selenium + chromedriver. With logging I'm able to get each subrequest's headers but not body. My logging…
1
2
3
13 14