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

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

Modify XHR response before sending it to client browser

I am new to Webproxy so need some guidance from the experts! I am running my UI automation tests in Saucelabs using Selenium remote web driver. When the client browser (in Saucelabs) tries to open a URL "https://abc.xyz.com/login", it makes a XHR…
0
votes
1 answer

How to simulate offline internet connection during selenium automated test and then switch it on again using BrowserMobProxy?

I've faced a problem that in some ui test cases I need to simulate offline internet connection. I've been using BrowserMobProxy to switch it off with abort() method but I can not find a way to switch internet on again. Method start() does not work…
0
votes
0 answers

BrowserMobProxy: How to use on the remote server from docker?

I need to use BMP for response/request analysis (selenium using). On the local, all works fine, but when I try to execute on the server, I get the error: I use several variants for proxy creation: private void startProxyServer(){ …
Valentyn Hruzytskyi
  • 1,772
  • 5
  • 27
  • 59
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
1 answer

Unable to capture browser network logs with BrowserStack local, BrowserMobProxy embedded mode and Selenium 3.x using java

Below is the dependencies in my maven pom.xml org.seleniumhq.selenium selenium-server 3.14.0 net.lightbody.bmp [browsermob-core][1]
0
votes
1 answer

BrowserMobProxy: ConnectionRefusedError: [WinError 10061] after system restart

I am using BrowserMobProxy to examine the traffic generated by my selenium webdriver. After restarting my PC I receive ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused message. It…
Kosh
  • 960
  • 2
  • 13
  • 28
0
votes
1 answer

Login with Selenium + Chrome driver + Browsermob Proxy only works if I add another proxy -> why?

I have the code below to initialise a setup of Selenium + Chrome driver + Browsermob Proxy to login to a certain website. If I just use the setup above, the login fails with HTTP 403. However, if I had another Proxy (Selenium + Chrome driver +…
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
1 answer

Problem with setting proxy and sending header - selenium and java

I am using selenium and java with my automation tests. I am forced to send authorization token in my tests so I used BrowserMobProxy library. Here is my setUp in @BeforeClass: BrowserMobProxy proxy = new…
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
1 answer

How to handle the SSL certificate of Edge browser via browsermob-proxy in selenium

I want to automate the web application on all browsers.My code is running fine for chrome,firefox but when i tried it on Edge,it showing the ssl certificate error. how i can handle this.tried so many workarounds but failed to achieve…
Kapil Kumar
  • 1
  • 1
  • 2
0
votes
2 answers

Chrome browser certificate is not trusted issue using browsermob-proxy

is there away to make chrome ignore the invalid certificate caused by using browsermob-proxy i'm using google.com just for example reason, in the real case i need to provide credentials and login and the invalid certificate prevent me from…
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…