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
1
vote
1 answer

Capturing Post parameters by monitoring network traffic in Selenium Webdriver

I havebeen recently trying things to capture network traffic in my Selenium WebDriver tests. I tried: Firebug+NetExport :NetExport is not supported for my FF41. BrowserMobProxy:Post data is captured but i guess it is encoded. Har Export Trigger :…
1
vote
1 answer

How to use a proxy with scrapy in a script based approach?

I can't seem to figure out how I would use a Browsermob-proxy with scrapy when using a script based approach. Has anyone come upon this use case before? Any help would be great I am using an approach as describer here
1
vote
2 answers

Browsermob proxy - how can I modify response using response_interceptor?

I am using a python wrapper for browsermob proxy, and I need to modify the server response. But I can't figure out how I can do it. Can anybody give me a working code sample? The documentation says I can send a javascript code for it, but it does…
ko1Rn
  • 1,847
  • 2
  • 12
  • 9
1
vote
0 answers

Browsermob proxy + chrome webdriver Https infinit lopp

I am using Browsermob proxy to catch HAR content of loaded web page thru chrome webdriver. net.lightbody.bmp browsermob-core-littleproxy
1
vote
1 answer

Capturing test traffic with BrowserMobProxy

I am trying to setup BrowserMobProxy to capture performance data. However im not having much success at the moment. Most if not all of the documentation i can find seems to use the now deprecated ProxyServer. And the documentation on the…
Cathal
  • 1,318
  • 1
  • 12
  • 19
0
votes
0 answers

How to record the HAR file of a page after scrolling down with browsermob proxy? [SOLVED]

I am using browsermob proxy and selenium to record the HAR file. The website I'm using only loads part of the data I want and, to get the rest of the data, you'll need to scroll to the bottom of the page. I've already tried scrolling down with…
annny092
  • 1
  • 2
0
votes
0 answers

browsermobproxy HAR file response content size is 0 always

I am trying to get the network log and gnerating a HAR file with browsermobproxy and I am not able to get the response content data, ie the content data has size 0 always. for example when I go to this url:…
0
votes
0 answers

How to pass source ip in request headers for an URL using browsermob proxy and selenium using python?

I want to send source_ip in request headers for any URL. Can it be done using selenium or browsermob proxy? After this I want to collect HAR of this URL also. I am aware of HAR collection but not sure how to send source_ip. I searched a lot but did…
0
votes
0 answers

How to capture browser console messages/logs and save it in a file using python?

Lets say I open up an URL in chrome or in any browser. Now I want to save the console logs or messages in a file so that I can perform certain validations. Can we do this using python? Please let me know how to do this? Note: The solution should…
0
votes
0 answers

How to get value of specific row in network payload?

How to get value of specific row in network payload with BrowserMobProxyServer? I want to get the value indicated in the screenshot, the value of "q". There is no need to write down everything to har file, I just want to get the value of "q". I have…
javabeginer
  • 1
  • 1
  • 6
0
votes
1 answer

use browsermobproxy when get the binarycontent How to do like fiddler utilDecodeResponse

I use python-browsermobproxy and python-selenium, then I set 'captureBinaryContent': True, so I can get the content, then I get the text from response, then use base64.b64decode to decode the response, the response is 'mimeType':…
licc
  • 1
  • 1
0
votes
1 answer

Seems adding browsermob-core to my dependencies causes my selenium webdriver to stop working

Here is the code. It's just an example test stuff works without browermob-core. With core I get NoSuchMethodError import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.openqa.selenium.By; import…
0
votes
1 answer

Selenium java+browsermob proxy i wanted to extract separate har file from the pages that my selenium script hits

I have 3 pages to navigate page1, page2 and page3. I wanted to capture 3 separate HAR file. i tried the below code when it visit page1 its extracted page one performance data in har file and when i visited page2 its extracted page1 and page2 data…
0
votes
1 answer

How to find _ transferSize in har file exported using browsermob-proxy in python

I am trying to export .har file using firefox-selenium-browsermob-proxy-python. Using the below code. bmp_loc = "/Users/project/browsermob-proxy-2.1.4/bin/browsermob-proxy" server = Server(bmp_loc) server.start() proxy =…
0
votes
1 answer

BrowserMob Proxy returning empty HTML response with Chrome headless browser, how can this be resolved?

I am trying to use BrowsermobProxy to Sniff network logs from my UI automation tests. I have to implement it for both HEAD and HEADLESS RemoteDriver. For Head-Driver it is working like a charm. Code for my Head-Remote Driver: Proxy seleniumProxy =…