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
2 answers

Browsermob Proxy - HAR file not as complete as manual HAR?

So, below is my basic code to try out Browsermob Proxy, and the output generated. The issue is with the output, which appear to be (1) incomplete in number and (2) not as detailed as I would manually check the network statistics in Dev tools…
FDM
  • 578
  • 5
  • 14
2
votes
0 answers

phantomjs stuck on linux

Using phantomjs com.codeborne:phantomjsdriver:1.2.1, selenium 2.49 and browserMob Proxy browsermob-proxy-2.0-beta-9. Testing on Mac works fine. Testing same settings(capabilities) on Linux 64bit with the right executable gets stuck with the…
Programmer
  • 165
  • 2
  • 15
2
votes
3 answers

Installing Browsermob proxy for getting HTTP codes

I might seem naive while asking this. I need to retrieve various HTTP codes, for few of our test scenarios. Now I know that Selenium cannot do it alone and we have to use a third party resource- may be a proxy like Browsermob. Has any one already…
demouser123
  • 3,128
  • 6
  • 41
  • 67
2
votes
0 answers

Generated Har files are merged into one file with browsermob-proxy and protractor

I am trying to use browsermob-proxy to generate multiple HAR files parallelly. My configuration is launching two instances of same spec.js, and each instance launches one IE browser with different port, and generates one har file. However, the…
2
votes
1 answer

Selenium webdriver. Endless page loading

I use Selenium webdriver with Firefox for scraping web pages. Sometimes web browser waits endless time for some excessive requests complete (e.g. to facebook.net). I've tried to use BrowserMob-Proxy to filter these requests. But it didn't help.…
Valentyn Grygoriev
  • 441
  • 10
  • 29
1
vote
0 answers

Python Internet Explorer driver using its own proxy instead of the proxy I have set

The browser traverses all the webpages correctly but is listening on a different port in spite of specifying the port in the below code. I am trying to initiate the internet explorer driver using selenium and browsermob-proxy with the following…
1
vote
1 answer

Set RequestHeader through Selenium WebDriver

I'm encountering the below error while trying to set Request headers using browsermobproxy for selenium tests. Exception in thread "main" org.openqa.selenium.WebDriverException: : Failed to read the 'localStorage' property from 'Window': Access 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
1 answer

How to use browsermob with python-selenium behind a corporate proxy?

My test environment is under a corporate proxy ("proxy.ptbc.std.com:2538").I want to open a particular video on YoTube for a period of time (eg 200 seconds) and capture the har file for each visit, the process is repeated several times for a massive…
1
vote
0 answers

Browsermob-Proxy - Problem to read XHR over SSL

This is my setup: Raspberry Pi 3 Model B Plus Rev 1.3 Linux 4.19.66-v7+ (RaspbianGNU/Linux 9 (stretch)) Selenium 3.141.0 Browsermob-Proxy 2.1.4 Chromium 72.0.3626.121 ChromeDriver 72.0.3626.121 Python 3.5.3 I would like to record the network…
1
vote
0 answers

how to fix No Internet: ERR_PROXY_CONNECTION_FAILED

started Selenoid ./cm selenoid start --vnc started BMP container docker run -p 58080:8080 -p 58200:8200 --name browser-mob-proxy bwowk/browsermob-proxy started Proxy curl -X POST -d \'port=8081\' http://localhost:58080/proxy creating…
1
vote
0 answers

Browser-Mob Intercepting multiple requests with same url but want to send back different response

I want to intercept requests in my application and one of the scenarios I have come across is that - due to nature of the application some of the services have same request endpoint different payload though and I want to send back different…
Galileo123
  • 143
  • 3
  • 15
1
vote
0 answers

How to decode request content from BrowserMobProxy's har?

I'm trying to get some data from facebook by using python3, seleniumwire, haralyzer, chromedriver and browsermobproxy. When I run broswermobproxy with that options: har_options = {'captureHeaders': True, 'captureContent': True,…
rlip
  • 31
  • 1
  • 6
1
vote
1 answer

C# - Why does BrowserMob.GetHar() only return 1 entry?

I am writing some simple C# code to try automatically getting HAR file from Chrome browser. I am using browser-mob-proxy and there is a function: GetHar() which is supposed to return some different entries of URL, request and response time, etc.…
1
vote
0 answers

BrowserUP Proxy Server does not collect all pages

I use BrowserUP to create a HAR File from my test and it seems that the pages are not logged propperly. if i go to google.com and search something and i save the har manually in the browser i get multiple pages in the har. example: "pages": [ …