Questions tagged [browsermob]

BrowserMob Proxy is a simple utility that makes it easy to capture performance data from browsers.

BrowserMob Proxy uses web automation utilities like Selenium to capture performance data in the HAR format. It can be integrated in a Java application or interacted through the REST interface.

It addition it also can actually control HTTP traffic, such as:

  • blacklisting and whitelisting certain URL patterns
  • simulating various bandwidth and latency
  • remapping DNS lookups
  • flushing DNS caching
  • controlling DNS and request timeouts
  • automatic BASIC authorization
126 questions
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
  • 185
  • 4
  • 17
1
vote
0 answers

BrowserMobProxy with browserstack is not intercepting the response

I am using JAVA + SELENIUM web-driver + browser mobproxy + browserstacklocal ( embeded) compile 'com.browserstack:browserstack-local-java:1.0.2' compile 'net.lightbody.bmp:browsermob-core:2.1.5' Locally its working fine as I am able to intercept…
1
vote
1 answer

Set a passthrough using browsermob proxy?

So I'm using browsermob proxy to login selenium tests to get passed IAP for Google Cloud. But that just gets the user to the site, they still need to login to the site using some firebase login form. IAP has me adding Authorization header through…
Cynic
  • 6,779
  • 2
  • 30
  • 49
1
vote
1 answer

URL blacklisting with BrowserMobProxy in Robot Framework/Selenium?

I'm using RobotFramework with Selenium library for writing automated test cases for various websites. I've encountered an issue where due to slow loading from third-party URLs, some pages take forever to load and I want to block them to speed up…
1
vote
1 answer

Activate Ecc for Browsermob/Selenium

I have the problem that the testing with Selenium and browsermob becomes very slow for certain websites. Here is my current code for setting up the server and proxy: server = Server(path_browsermob) server.start() proxy =…
janwal47
  • 15
  • 3
1
vote
0 answers

Selenium with BrowserMob - 404 errors

I'm currently trying to setup Selenium WebDriver with BrowserMob, to capture network requests in a test. At the moment my setup is as follows: Development Machine running TomCat on 192.168.1.97, port 8080 On the webdriver: System.out.println(…
Squiggs.
  • 4,299
  • 6
  • 49
  • 89
1
vote
1 answer

Browsermob causes error in IntelliJ created jar file

I'm trying to create executable jar for Maven Selenium/TestNG/Java test automation project, but I keep getting "Error: Could not find or load main class" when running .jar file. To make sure it is indeed Browsermob causing jar to fail, I created a…
1
vote
1 answer

Java: Change log level of external library maven dependency

I am using maven to import external dependency BrowserMob Proxy into my Java project: net.lightbody.bmp browsermob-core-littleproxy 2.1.0-beta-3
pete
  • 93
  • 1
  • 7
1
vote
1 answer

Get only request/response with loading time >= 1 Sec BrowserMob in Java

Is it possible to filter the request/response from .HAR whose loading time is >=1 Sec? I need to save har object into seperate file and upload into har viewer. Below is my code to generate .HAR file. //BrowserMobProxy BrowserMobProxy server…
1
vote
0 answers

Obtaining HAR Request\Response C#

When launching browsermob on Windows through the supplied .bat file in a C# solution I am unable to retrieve the request\response data in the supplied HAR file from the REST API. I have attempted setting the /proxy/[port]/har captureContent to true…
1
vote
1 answer

browsermob in JAVA with Selenium doesn't work, different errors for browsers

I using Java with selenium and I want to use browsermob: I using same code for different browsers e.g. firefox: BrowserMobProxyServer proxyServer = new BrowserMobProxyServer(); proxyServer.start(); …
Mateusz Sobczak
  • 1,551
  • 8
  • 33
  • 67
1
vote
2 answers

Is there a way to capture network using BrowserStack with Selenium?

I use BrowserStack with Selenium-webdriver to run tests on different types of devices and browsers. So actually tests are running by RemoteWebDriver. I know that it's possible to capture network within Selenium tests using BrowserMobProxy, but as i…
1
vote
1 answer

BrowserMob. How to configure BrowserMobProxy through httpclient

I am trying to use BrowserMob proxy library (net.lightbody.bmp) to intercept http requests from some default website (for instance: "https://default.com") and my question is how to do that ? BrowserMobProxy proxy = new…
1
vote
0 answers

io.netty.handler.codec.TooLongFrameException: HTTP content length exceeded 2097152 bytes. Exception with selenium and browsermob

I started seeing below issue recently when i run my tests on chrome browser(selenium) io.netty.handler.codec.TooLongFrameException: HTTP content length exceeded 2097152 bytes. at…
nurav
  • 269
  • 2
  • 6
  • 19
1
vote
1 answer

How does one configure a proxy upstream of browsermob on osx?

I'm looking to configure an upstream proxy for browsermob, preferably programmatically from within a python or shell script. It doesn't look like the python bindings for browsermob include an upstream-proxy configuration command or method. Is there…
blueberryfields
  • 45,910
  • 28
  • 89
  • 168
1 2 3
8 9