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
18
votes
4 answers

How to use browsermob with python-selenium?

I want to use browsermob to monitor the network connections when doing a GUI test with selenium. I have found some information and documentation here and here and here, but its absolutely unclear how to really use it. In the documentation it…
Alex
  • 34,021
  • 64
  • 178
  • 371
9
votes
3 answers

How to capture network traffic using selenium webdriver and browsermob proxy on Python?

I would like to capture network traffic by using Selenium Webdriver on Python. Therefore, I must use a proxy (like BrowserMobProxy) When I use webdriver.Chrome: from browsermobproxy import Server server =…
Jose
  • 366
  • 1
  • 4
  • 13
8
votes
4 answers

Selenium get .har file

I have a two page application: /login /profile I want to get .har file page /profile. When i go to the page /login, the cookie is created with a key=connect.sid and value = "example value". This cookie is not yet active. I added the cookies with…
Denis Egorov
  • 81
  • 1
  • 1
  • 2
8
votes
0 answers

Slow Selenium tests when using proxy with BrowserMob

I am setting up a ChromeDriver using BrowserMob(http://bmp.lightbody.net/) for intercepting HTTP responses. ProxyServer proxyServer = null; proxyServer = new…
Charlie
  • 491
  • 1
  • 4
  • 16
7
votes
1 answer

BrowserMob Proxy Python - How to get response body?

I need to get the response body content for a POST request using Selenium Chrome driver and browsermob proxy. Currently this content is not included in my file HAR output when i read it although i can see the response in the browser network traffic.…
j58765436
  • 125
  • 1
  • 4
6
votes
4 answers

Unable to access unsecured https with selenium using browsermob proxy

I'm trying to embed browsermob proxy with my selenium (chrome) framework for UI automated testing in order to intercept responses and other networking. Description : Selenium webdriver using browsermob proxy and it works just fine - HTTP and secured…
6
votes
3 answers

Configure WebDriverIO with BrowserMobProxy

Does anyone have a proper example on how to configure BrowserMobProxy with WebDriverIO? This is so I can capture network traffic. I previously had it working with WebDriverJS, which is essentially a deprecated version of WebDriverIO.
Brandon
  • 901
  • 4
  • 11
  • 30
6
votes
2 answers

How can I use BrowserMob Proxy with Protractor?

I'd like to capture the network requests made by my application during a Protractor test suite run. BrowserMob Proxy looks like a great tool for this. I'd like to integrate BrowserMob Proxy into Protractor using the browsermob-node node.js binding…
afternoon
  • 1,235
  • 16
  • 25
6
votes
2 answers

Pass BrowserMob Proxy to Sauce Labs - "The proxy server is refusing connections" Error

I have been trying to pass BrowserMob proxy to Sauce Labs with no luck. Here's what I have tried: Start proxy server sh browsermob-proxy -port 9090 Start proxy curl -X POST http://localhost:9090/proxy {"port":9091} Start sauce connect, and pass…
Mingyu
  • 26,145
  • 13
  • 50
  • 58
5
votes
1 answer

HTTP proxy for Appium in native apps?

I was wondering if somebody has an idea what Java/Groovy library/tool to use for sniffing, recording and processing HTTP traffic of native apps when running Appium tests ? Does anybody has experience with Browser Mob for that specific case ? Thanks!…
daniel.lozynski
  • 9,181
  • 6
  • 16
  • 21
5
votes
3 answers

How to monitor HTTP calls using browsermob-proxy and nightwatch.js?

I am writing testcases using Nightwatch.js framework for SPA application. A requirement came in here we have to monitor HTTP calls and get the performance results for the site. As this could be easily achieved using JMeter. Using automation testing…
vibhor
  • 181
  • 1
  • 2
  • 7
5
votes
3 answers

Setting up browsermob proxy with ChromeDriver

I'm trying to set up browsermob to work in my selenium project. I was looking for a way to use ChromeOptions to set the proxy, but all sources tell me to use ChromeOptions for everything else, then convert it into DesiredCapabilities before…
Julian
  • 1,583
  • 1
  • 13
  • 31
5
votes
1 answer

Set proxy for selenium chrome driver in ruby

Browsermob proxy:- https://github.com/jarib/browsermob-proxy-rb I can able to create and set proxy for firefox profile but not on chrome. I don't know which options i have to use for chrome to set proxy. Am using the following code:- For…
Galet
  • 4,039
  • 12
  • 62
  • 119
4
votes
2 answers

Running browsermob with selenium grid on docker

I am using the python client for browsermob to record traffic of my selenium tests. Selenium grid is in a docker container with images for chrome and firefox. I cant seem to configure the docker images properly to connect to the proxy and the…
4
votes
5 answers

Browsermob proxy with selenium generates empty output

I am using selenium 3.0.2 and browsermob proxy 0.7.1 to capture the network data. All I am getting is an empty JSON. My code is: server = Server("/Users/dev/Downloads/browsermob-proxy-2.1.2/bin/browsermob-proxy") server.start() proxy =…
1
2 3
8 9