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
0
votes
1 answer

Why is browsermobproxy not working for my internal ip?

While I am used to python, I am not very familiar with all the protocols used by browser. I am not trying to setup a proxy for my selenium webdriver and this is the code that I use. from browsermobproxy import Server, Client server =…
user1429322
  • 1,266
  • 2
  • 24
  • 38
0
votes
1 answer

Selenium-Java:Browsermob Proxyy- NoClassDefFoundError

I updated POM.xml with latest selenium-java dependency and Browsermob proxy. Java Code: WebDriver driver = new ChromeDriver(); driver.get("http://www.google.com"); driver.quit(); POM.xml looks like,
Barney
  • 1,851
  • 2
  • 19
  • 36
0
votes
1 answer

Python BrowserMob Proxy with IE captures incorrect HAR?

I am currently trying to use BrowserMob Proxy (v2.1.1) + Selenium (v2.5.3) for Python (v2.6) to test page load times and output them to HAR files. I need to test both Chrome and IE. I currently have it working perfectly for Chrome and it runs…
JD Francis
  • 454
  • 1
  • 4
  • 22
0
votes
2 answers

Set up browsermobproxy to run successfully with appium and sauce labs

I am unable to create a BMP to capture traffic from my Java tests being run in Sauce labs. Has anyone ever completed this task successfully? Here is my exmaple code: public class AppiumTestBase { BrowserMobProxy proxy; public…
0
votes
1 answer

Browsermob Proxy (java): failing to rewrite a URL

I'm using BrowserMob Proxy and I want to redirect traffic from my production server to a test server. For that I'm using a rewriteUrl in the followin manner: public class Main { public static void main(String[] args) { …
Yotam
  • 9,789
  • 13
  • 47
  • 68
0
votes
2 answers

How to add RequestInterceptor and change Referer in BrowserMob-Proxy 2.0

I am using BrowserMob-Proxy inside a Selenium test suite. I would like to change the Referer for a few tests. I have added requestInterceptor from the 2.0 docs into our MyProxy class and while it does not generate an error the Referer is not…
analyticsPierce
  • 2,979
  • 9
  • 57
  • 81
0
votes
1 answer

How to get page load time from har file in python?

I'm trying to get the page load time. I'm using BrowserMob Proxy with selenium to generate the HAR file and haralyzer to read the HAR file. Details and error log is here, Please suggest if there are any other way to achieve this.
pr4bh4sh
  • 654
  • 3
  • 12
  • 19
0
votes
1 answer

'NoSuchMethodError' exception with browsermob-proxy 2.1.0-beta4

I'm trying to capture traffic from my mobile device using browsermob-proxy 2.1.0-beta4, but I keep getting a NoSuchMethodError exception that weirdly enough keeps mentioning Google - java.lang.NoSuchMethodError:…
Yotam
  • 9,789
  • 13
  • 47
  • 68
0
votes
1 answer

How to run BrowserMob Proxy with RobotFramework and Capture HAR files

I have written this code in robotframework ${proxy}= | Evaluate | sys.modules['selenium.webdriver'].Proxy() sys, selenium.webdriver | ${proxy.http_proxy}= | Set Variable | 127.0.0.1:8080 | Create Webdriver | …
Vinaykumar Patel
  • 864
  • 11
  • 26
0
votes
2 answers

Browsermob: how to accept https traffic

I use browsermob-proxy-2.1.0-beta-4-bin, and when I create an instance, I can view only HTTP-based sites. Is there any way to view HTTPS-sites?
N. Kuznetsov
  • 55
  • 2
  • 6
0
votes
1 answer

Rewrite HAR content via BrowserMobProxy and Selenium

Is it possible to change the har (with json in it) response from an https site? I see the initial json by getText(), then use setText(), and change its size by setSize and setBodySize. The content is changed as I see in debug. But it seems that…
0
votes
1 answer

browserMob proxy with phantomjs throws "java.net.UnknownHostException" for http protocol

Trying to use PhantomJS(com.codeborne:phantomjsdriver:1.2.1) for some headless browser testing along with BrowserMob Proxy(browsermob-proxy-2.0-beta-9) to capture HAR files and Javascript execution. It works for urls with https(eg.…
Programmer
  • 175
  • 1
  • 2
  • 17
0
votes
1 answer

handling har files in browsermobproxy with selenium 2 and python

I am using browsermobproxy to store xhr requests with selenium webdriver and python. proxy.new_har("req", options={'captureHeaders': True,'captureContent':True}) driver.get("http://www.example.com") proxy.har After reading the har file, I find…
proprius
  • 502
  • 9
  • 20
0
votes
1 answer

SSL issue using browsermob proxy 2.1.0

Geting following exception on browsermob proxy. We have import Cyber villain cert to our browser(Firefox). Also website cert have been imported to java cacert. When we try to browser website on https, page is broken and we see following excepion on…
0
votes
2 answers

BrowserMob Proxy Questions

Is anyone familiar with using BrowserMob Proxy? I need some help. https://github.com/lightbody/browsermob-proxy/blob/master/README.md My goal is to try to use BrowserMob Proxy to detect that certain events are fired in the Network Tab. Any idea…
ML.
  • 589
  • 1
  • 9
  • 33
1 2 3
13
14