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
127 questions
0
votes
0 answers

Partial request is missing header information when using BrowserProxyMob and Selenium

I'm using BrowswerProxyMob to authenticate a web proxy and visiting a certain web page. With the below setup, I am able to load the page partially, but there are some resources (such as js) which failed to load due to missing header information in…
0
votes
0 answers

BrowserMobProxy with proxy authentication seems to hang / block HTTP request

I'm using BrowserMobProxy in my Selenium Java program to authenticate the HTTP proxy for web browsing. When I visit a website, e.g., 'google.com', the browser loads the page just fine. However, when I put a debug breakpoint after the first page load…
0
votes
0 answers

Failed to load resource: net::ERR_PROXY_CONNECTION_FAILED', error with Selenium+python+browsermobproxy

I am automating my web application with Selenium on Chrome browser. I am using browsermob-proxy==0.8.0 python package to capture HAR file. I am getting the below errors intermittently. Can someone please help me on this? The console log shows this…
Pratap
  • 1
  • 2
0
votes
0 answers

I would like to intercept network requests using selenium 4 and save them into a json file

I am using selenium in order to intercept network requests , now I wrote a code which listen and do intercept requests but I am struggling in writing all the requests into a json file, this is my code: public class SeleniumFourFeaturesTest { …
0
votes
0 answers

Changing host on headers Browsermob

I'm trying to change the host like below. BrowserMobProxyServer browserMobProxy = new BrowserMobProxyServer(); browserMobProxy.addRequestFilter((request, contents, messageInfo) -> { request.headers().add("Host", "www.xyz.com"); …
Ganesan S
  • 85
  • 1
  • 1
  • 11
0
votes
1 answer

Getting error 'Browsermob-Proxy binary couldn't be found in path provided' even after installing required proxy

I am using a Mac and installed the required files from bmp.lightbody.net, and unzipped them. I tried creating a Server in my Python file using the following code. server =…
0
votes
0 answers

Browsermob Proxy - Choose my port - Even in Google Colab

I trying to make BrowsserMob Proxy works on Google Colab but i'm facing errors that I don't understand. Some ports is already in use so I want Browsermob Proxy to use port of my choose. But I can't manage to do it proprely. See my last try : from…
0
votes
0 answers

Selenium browsermobproxy makes all webs insecure

I have tried to add this to the driver to avoid the problem DesiredCapabilities desiredCapabilities = DesiredCapabilities.chrome(); desiredCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,…
nonyck
  • 31
  • 2
0
votes
0 answers

BrowserMobProxy server failed to start

I'm trying to get HAR file using browsermob proxy in selenium web driver, java. Below is code snippet pom.xml net.lightbody.bmp browsermob-core
0
votes
1 answer

Browsermob dependecy insertion cannot work with allure testng

I'm trying to change requests headers using browsermob, but I can't even insert the dependency. I don't know if there are any incompatibilities between allure and browsermob, I already tried to downgrade the allure version and really I have no clue…
Helena
  • 3
  • 1
0
votes
0 answers

Selenium, Browser Mob, and Response Variables not Showing up [Encrypted Data?]

I have read a variety of threads on the issue and didn't seem to find an answer. I am trying to get a message, specifically the "var responses="[[VALUES]]" from a Firefox/Chrome browsers Network Traffic. Specifically, on our website, we have a login…
0
votes
0 answers

Selenium and BrowserMob: "java.lang.RuntimeException: Could not resolve localhost"

I'm trying to use the Selenium Web Driver with BrowserMob to capture traffic. For some reason I cannot start the application. This is my code: BrowserMobProxy proxy = new BrowserMobProxyServer(); proxy.start(1454); Proxy seleniumProxy…
smokeSH
  • 109
  • 2
  • 9
0
votes
0 answers

How to set headers to selenium webdriver (each requests can be use different headers) in java

I use a Maven project: net.lightbody.bmp browsermob-core 2.1.5 I want go to html site with different user (by…
Stéphane GRILLON
  • 8,567
  • 5
  • 60
  • 106
0
votes
0 answers

BrowserMob Proxy not injecting headers with new Chrome version

I recently upgraded my Chrome/Chromedriver from v69 to the latest v76, and my suite of Selenium tests - which use BrowserMob Proxy to inject HTTP headers - have stopped working. The ChromeDriver will open the browser OK, but the headers are no…
0
votes
1 answer

What should be the path of browsermob-proxy when installed as pypi package

$pip install browsermob-proxy Downloaded and extracted the binary from https://bmp.lightbody.net to /Users/ishandutta2007/Downloads/browsermob-proxy-2.1.4/ from browsermobproxy import Server dict = {'port': 8090} server = Server(options=dict) server…
ishandutta2007
  • 12,620
  • 12
  • 74
  • 99
1 2 3
8 9