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

How can I intercept SSL requests with BrowserMob proxy

I am using BrowserMob proxy 2.0-beta-8 in a test automation project with Selenium. The page I'm testing against is using https and I need to rewrite the user agent header. For plain http requests everything works fine - the request interceptor is…
Valentin
  • 7,874
  • 5
  • 33
  • 38
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
1 answer

Python browsermob proxy with selenium

I'm trying to import the Google HAR file, but this code I wrote gives me this error: AttributeError: 'ProxyManger' object has no attribute '_ProxyManger__server'. Did you mean: '_ProxyManger__BMP'? My codes: import pprint import time from…
E.MRZ
  • 71
  • 1
  • 7
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

Browser Mob Proxy on google colab

Hi I was trying to run browsermob-proxy on google colab but was constantly getting the error: Could not read Browsermob-Proxy json Another server running on this port? Also I tried to find code on the internet on how to use browsermob-proxy on…
0
votes
1 answer

BrowserMob Proxy with Python - The Browsermob-Proxy server process failed to start - Seeing Operation not permitted in server.log

I have written following code in python to work with BrowserMob-proxy. Have the same library added and I can see it in site packages. from selenium import webdriver from browsermobproxy import Server server =…
Sriram S
  • 169
  • 14
0
votes
1 answer

Unable to start sauce connect with proxy - next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT

I am using latest sauce connect in windows and works fine without proxy. Now if I use browsermobproxy, and try to start sauce connect, it fails with error >sc -u userName -k token -i tunnelName --proxy 127.0.0.1::9091 --doctor !!! ERROR: connecting…
SSP
  • 85
  • 7
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
2 answers

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

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

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
  • 11,140
  • 10
  • 85
  • 154
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
0 answers

Using proxies with Selenium WebDriver and chrome

Im writing a selenium-webdriver script in ruby and im trying to figure out how to make the browser window that selenium opens use a proxy with user pass authentication. i.e. (234.43.234:2345:user:pass) so far my code is thus.... def…
Verty00
  • 726
  • 5
  • 16
1 2 3
8 9