browsermob-proxy
browsermob-proxy copied to clipboard
HTTPS HAR empty with BrowserMob and Selenium WebDriver
We are using the proxy and WebDriver and followed steps described in https://github.com/lightbody/browsermob-proxy#ssl-support Still we are not able to see waterfalls. The HAR file is empty. We tried to add certificates in many places. We are using Ubuntu instances on AWS. Also looked at this: https://askubuntu.com/questions/244582/add-certificate-authorities-system-wide-on-firefox/248326#248326 So far nothing has worked. Anyone who can help?
@lightbody I am also having similar problem. My Selenium Tests run on SeleniumGrid and I use following snippet:
ProxyServer proxyServer = new ProxyServer();
int port = 4445;
proxyServer.setPort(port);
proxyServer.start();
org.openqa.selenium.Proxy proxy = proxyServer.seleniumProxy();
dc.setCapability(CapabilityType.PROXY, proxy);
dc.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new RemoteWebDriver(new URL("http://" + machineName + "/wd/hub"), dc);
driver.get(url);
Har har = proxyServer.getHar();
I am using older version of BMP, 2.0.beta_10.jar I am able to get through 'http' calls fine but the only problem is with 'https'.
Do we need to add certificate manually? Is there a way to do it programatically? Because often times if we want to run tests on different machines we need to repeat the process.
I see comments in other threads that the above code should work for the version that I am using. Is there something which I am missing in the code?
Also I read in the documentation: "If you're running running tests on a Selenium grid, you will need to customize the Selenium Proxy object created by createSeleniumProxy() to point to the hostname of the machine that your test is running on", how do we do that?
Could you guys please provide a sample on how to do that?
We tried to add the certificate, and we tried to put it in many places, but maybe we missed the right one?
Getting empty HAR for new Chrome driver + new Chrome with Selenium 3.4.0 as well, both HTTP & HTTPS
Getting empty HAR for Chrome driver + Selenium 3.0.1 Win
Chrome driver 0.16 and selenium 3.4.3. Sad!
the same issue from my end
Could only add, it may help when you check that the name of your PC don't have non latin letters or symbols!
Any solutions ?
@tlytvyn What issue are you having?
An empty HAR indicates that the browser is not configured properly to send traffic to BMP.
In my case the problem is for HTTPS requests only. There should be a MITM to handle this, according to the Browsermob documentation, but either we put the certificate in the wrong place or we need to configure something else. Recently I received the following suggestion that seems to be working when proxy and WebDriver are co-located: server = BrowserMob::Proxy::Server.new("./browsermob-proxy-2.1.4/bin/browsermob-proxy") server.start proxy = server.create_proxy
profile = Selenium::WebDriver::Firefox::Profile.new profile.proxy = proxy.selenium_proxy(:ssl) capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(accept_insecure_certs: true) driver = Selenium::WebDriver.for :firefox, :profile => profile, desired_capabilities: capabilities
But in our case we have a standalone Browsermob, and can not set the profile from my client. At least I was not able to find a way to do so. I start Browser mob this way, from a shell script: #!/bin/bash
/root/bmp/bin/browsermob-proxy -port 8888 > /var/log/bmp.log 2>&1 & sleep 10 curl -XPOST 'http://localhost:8888/proxy' -d "port=9091"
Any idea?
Are you seeing any error in the browser, or just not seeing any entries for https? Browsers have both an http and an https proxy setting, so make sure you're setting both. (That's not done by BMP in standalone mode.)
How do you set this?
@jekh
My HAR file is like that:
{"log":{"version":"1.2","creator":{"name":"BrowserMob Proxy","version":"2.1.4","comment":""},"pages":[{"id":"Page 0","startedDateTime":"2017-07-31T06:48:36.079Z","title":"Page 0","pageTimings":{"comment":""},"comment":""}],"entries":[],"comment":""}}
Here is a code (selenium latest version library is used): `public static void main (String [] args) throws IOException { BrowserMobProxy proxy = new BrowserMobProxyServer(); proxy.start(0);
// get the Selenium proxy object
Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxy);
// configure it as a desired capability
ChromeOptions options = new ChromeOptions();
options.addArguments("--ignore-certificate-errors");
// replace 'somedirectory' with a suitable temp dir on your filesystem
options.addArguments("--user-data-dir=somedirectory");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
// start the browser up
setChromeDriver();
WebDriver driver = new ChromeDriver(capabilities);
// enable more detailed HAR capture, if desired (see CaptureType for the complete list)
proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);
// create a new HAR with the label "yahoo.com"
proxy.newHar();
// open yahoo.com
driver.get("http://www.lits.com.ua");
driver.get("http://www.google.com.ua");
// get the HAR data
Har har = proxy.getHar();
File harFile = new File("target/harfile.har");
//harFile.mkdirs();
harFile.createNewFile();
har.writeTo(harFile);
}`
Hi All, I am facing the same issue, currently i am using chrome browser, please find below HAR file
{"log":{"version":"1.2","creator":{"name":"BrowserMob Proxy","version":"2.1.2","comment":""},"pages":[{"id":"www.seleniumeasy.com","startedDateTime":"2017-11-2T09:55:09.821+11:00","title":"www.google.com","pageTimings":{"comment":""},"comment":""}],"entries":[],"comment":""}}
you should try with the latest version of Browsermob 2.1.5 and latest chrome driver, with browsermob certificates imported into chrome.
You seem to be using Browsermob 2.1.2. I am currently on 2.1.5 and have done bunch of testing, but dont have issues with capturing har logs.
@mediga , I tried with latest Browsermob 2.1.5 and latest chrome driver but still facing same issue {"log":{"version":"1.2","creator":{"name":"BrowserMob Proxy","version":"2.1.5","comment":""},"pages":[{"id":"yahoo.com","startedDateTime":"2017-11-22T07:30:35.618Z","title":"yahoo.com","pageTimings":{"comment":""},"comment":""}],"entries":[],"comment":""}}
Browsermob : 2.1.5 Selenium : 3.6.0 chrome driver 2.32 Chrome : 60.x
Try this code. I made few changes to the driver on how options are set and it works fine. Got 22 entries in the log
System.setProperty("webdriver.chrome.driver","C:/mystuff/drivers/chrome/chromedriver_232.exe");
BrowserMobProxy proxy = new BrowserMobProxyServer();
proxy.setTrustAllServers(true);
proxy.start(0);
Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxy);
// configure it as a desired capability
ChromeOptions options = new ChromeOptions();
options.addArguments("--ignore-certificate-errors");
// replace 'somedirectory' with a suitable temp dir on your filesystem
options.addArguments("--user-data-dir=somedirectory");
DesiredCapabilities capabilities = new DesiredCapabilities();
options.setCapability(CapabilityType.PROXY, seleniumProxy);
options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
// start the browser up
WebDriver driver = new ChromeDriver(options);
// enable more detailed HAR capture, if desired (see CaptureType for the complete list)
proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);
// create a new HAR with the label "yahoo.com"
proxy.newHar();
// open yahoo.com
driver.get("http://www.lits.com.ua");
driver.get("http://www.google.com.ua");
// get the HAR data
Har har = proxy.getHar();
System.out.println("Entries count :"+ har.getLog().getEntries().size());
File harFile = new File("c:/mystuff/harfile.har");
try{
//harFile.mkdirs();
harFile.createNewFile();
har.writeTo(harFile);
}catch(Exception e){
e.printStackTrace();
}
}
Hi,
Is there a resolution identified yet? I am facing the same issue and getting the following empty Har:
{"log":{"version":"1.2","creator":{"name":"BrowserMob Proxy","version":"2.1.5","comment":""},"pages":[{"id":"Rentalcars.com","startedDateTime":"2017-12-04T01:54:03.431Z","title":"Rentalcars.com","pageTimings":{"comment":""},"comment":""}],"entries":[],"comment":""}}
I've tried the following but no luck:
Added the certificate manually to Firefox v54 Added 'options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);' to my code
Any help will be greatly appreciated.
Mahdi
have you tried with code I have provided earlier? Share your pom.xml entries if you are using maven.
I see you are using Firefox. There seems to be an issue with Firefox in setting Proxy this way
options.setCapability(CapabilityType.PROXY, seleniumProxy);
instead try to set the proxy like below . Make sure you are using atleast v0.19.1 version of geckodriver and the following code to set the proxy to firefox.
int port = proxy.getPort();
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.proxy.type", 1);
profile.setPreference("network.proxy.http", "localhost");
profile.setPreference("network.proxy.http_port", port);
profile.setPreference("network.proxy.ssl", "localhost");
profile.setPreference("network.proxy.ssl_port", port);
profile.setPreference("network.proxy.ftp", "localhost");
profile.setPreference("network.proxy.ftp_port", port);
profile.setPreference("network.proxy.share_proxy_settings", true);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profile);
WebDriver driver = new FirefoxDriver(options);
@mediga - I have tried but it's throwing errors still, I have attached my dependencies and the code.
Please let me know if you see what I'm doing wrong, it feels I'm chasing my own tail.
Thanks in advance for all your help.
Can you try by removing this from pom.xml
<scope>test</scope>
What is the error you are getting?
I'm afraid the above didn't make any difference.
I have followed your suggestion to set the proxy instead of the setCapability. It's giving me a 'ConnectionFlowStep failed'.
I get an empty har when I revert back to:
DesiredCapabilities seleniumCapabilities = new DesiredCapabilities(); seleniumCapabilities.setCapability(CapabilityType.PROXY, SeleniumProxy); seleniumCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
I ran your code as a standalone program (main() method) on my machine (windows 10 with geckodriver v0.19.1, Firefox 57.0b13 (64-bit). Works perfectly fine.
Can you run the same on your side?
It worked like a charm, Thanks again for your help, much much appreciated
I have this interesting quirk:
When running Chrome headless, HAR information will not be captured for HTTPS urls:
ChromeOptions opts = new ChromeOptions();
opts.addArguments("--headless");
Information is captured when running a visible Chrome.
Need to install browsermob certificates into the browser. Refer the solution details here
https://github.com/lightbody/browsermob-proxy/issues/718
Thank you for your comment, but manually installing certificates is not an option for me. (I did not investigate how to automate it, though.)
With a bit of digging in #718 and https://bugs.chromium.org/p/chromium/issues/detail?id=721739#c91 (thanks again for pointing me to them), it looks like --headless
and --ignore-certificate-errors
can be combined in Chrome 65.
When running with Chrome 65 and Chromedriver 2.36 I have information for HTTPS requests in the HAR. (I used Selenium's DesiredCapabilities.setAcceptInsecureCerts - the Chrome command switch did not work for me.)
Hi All, I am facing the issue for Https only, I am using Chrome browser and getting empty HAR file
{"log":{"version":"1.2","creator":{"name":"BrowserMob Proxy","version":"2.1.5","comment":""},"pages":[{"id":"Page 0","startedDateTime":"2018-03-21T23:10:31.573Z","title":"Page 0","pageTimings":{"comment":""},"comment":""}],"entries":[],"comment":""}}

Do I am missing something, In my case the problem is for HTTPS requests only.
Hi everyone,
Been searching for a solution since two days, but things are falling apart. I need to log network calls, probably what everyone is trying to do here.
Please find my code attached and pom. Please help as i m new to this. TrafficAnalyzer.txt pom.txt
I m using intellij, if any configuration is to be done, please discuss.
Hi Has anyone found a solution to this issue? I am seen this issue with BrowserMob Proxy (2.1.4) , selenium grid and chrome browser. All those are run inside containers
Works for me since https://github.com/lightbody/browsermob-proxy/issues/626#issuecomment-369961883
Can anyone provide me the the java file and pom.xml file for generating har from https.
Hi Ganesh,
This might help u.
Regards,
Bilal Hayat Con : 8882904162
On Fri, Nov 2, 2018 at 5:52 PM Ganesh-Mishra [email protected] wrote:
Can anyone provide me the the java file and pom.xml file for generating har from https.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lightbody/browsermob-proxy/issues/626#issuecomment-435359748, or mute the thread https://github.com/notifications/unsubscribe-auth/AVt6AevZ7VsHgBPS3QIbcP-190THincjks5urDdngaJpZM4M_sjP .
Hi everyone, I am also having this issue, though my setup might be a bit more complicated.
I am running my tests using Selenium via Maven and the Command console, browserstack local is also activated on the command console.
I am as well getting the empty har file. I can't figure out for the life of me how to get the correct data, seems like I have tried everything.
Below you will find my code, it's more like snippets as I am using PageObjects and Inheritance for my tests. Just overall a bunch of various techniques and techs are involved.
import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.net.Inet4Address; import java.net.Inet6Address; import java.net.UnknownHostException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Set; import java.util.UUID; import java.util.concurrent.TimeUnit;
import org.junit.Assert; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import org.openqa.selenium.Capabilities; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.Proxy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.support.ui.WebDriverWait;
import net.lightbody.bmp.BrowserMobProxy; import net.lightbody.bmp.BrowserMobProxyServer; import net.lightbody.bmp.client.ClientUtil; import net.lightbody.bmp.core.har.Har; import net.lightbody.bmp.core.har.HarEntry; import net.lightbody.bmp.proxy.CaptureType;
static public BrowserMobProxy proxy = new BrowserMobProxyServer(); // getting browsermob proxy
///////////
public static Proxy getSeleniumProxy(BrowserMobProxy proxyServer) throws UnknownHostException { int port = proxy.getPort(); Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxy); return seleniumProxy; }
///////////
// Sending the Test Setup for Analytics Staging //
public static void AnalyticTestSetup(WebDriver driver) throws InterruptedException, IOException {
JavascriptExecutor LI = (JavascriptExecutor) driver;
Capabilities cap = ((RemoteWebDriver) driver).getCapabilities();
String browserName = cap.getBrowserName().toString();
proxy.setTrustAllServers(true);
proxy.setHarCaptureTypes(CaptureType.getAllContentCaptureTypes());
proxy.enableHarCaptureTypes(CaptureType.getAllContentCaptureTypes());
proxy.start();
DesiredCapabilities capability = new DesiredCapabilities();
Proxy seleniumProxy = PortalFunctions.getSeleniumProxy(proxy);
capability.setCapability(CapabilityType.PROXY, seleniumProxy);
// Create object of SimpleDateFormat class and decide the format
DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmm");
// get current date time with Date()
Date date = new Date();
// Now format the date
String date1 = dateFormat.format(date);
// Print out the fired analytics events//
proxy.newHar("Analytics"); // creating new HAR
driver.get(IndexElements.WebURL + date1);
System.out.println(IndexElements.ANSI_WHITE + driver.getTitle() + (" Being tested on: ") + Environment
+ (" and ") + IndexElements.ANSI_GREEN + browserName + (" browser!"));
driver.manage().window().maximize();
Thread.sleep(10000);
// get the HAR data
Har har = proxy.getHar();
System.out.println("Entries count :"+ har.getLog().getEntries().size());
File harFile = new File("Users/joshua/git/Automation_Code/HarFiles/harfile.har");
try{
//harFile.mkdirs();
harFile.createNewFile();
har.writeTo(harFile);
}catch(Exception e){
e.printStackTrace();
}
IndexElements.iFrame(driver);
}
///////////////////////////////////////////////////////////////////////////////////////////////////
package analyticTesting;
import java.io.FileNotFoundException; import java.io.IOException; import java.net.Inet4Address; import java.net.UnknownHostException; import java.util.HashMap; import java.util.List; import org.junit.Assert; import java.net.URL; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.log4j.BasicConfigurator; import org.openqa.selenium.Proxy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.ie.InternetExplorerDriver; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import net.lightbody.bmp.BrowserMobProxy; import net.lightbody.bmp.BrowserMobProxyServer; import net.lightbody.bmp.client.ClientUtil; import net.lightbody.bmp.core.har.Har; import net.lightbody.bmp.core.har.HarEntry; import com.browserstack.local.Local; import pageObjects.AdminInterfaceFunctions; import pageObjects.IndexElements; import pageObjects.PortalFunctions;
@SuppressWarnings("unused") public class AnalyticPortalRun {
public static WebDriver driver;
String methodName;
@BeforeClass
@org.testng.annotations.Parameters(value = { "browser", "version", "os", "os_version" })
public void setUp(String browser, String version, String os, String os_version) throws Exception {
DesiredCapabilities capability = new DesiredCapabilities();
capability.setCapability("browserName", browser);
capability.setCapability("browserVersion", version);
capability.setCapability("os", os);
capability.setCapability("os_version", os_version);
capability.setCapability("project", "Analytic Automation Test");
capability.setCapability("build", "Staging");
capability.setCapability("browserstack.debug", "true");
capability.setCapability("browserstack.console", "verbose");
capability.setCapability("browserstack.local", "true");
capability.setCapability("browserstack.localIdentifier", "Test123");
capability.setCapability("resolution", "1920x1080");
capability.setCapability("browserstack.safari.enablePopups", "true");
capability.setCapability("browserstack.safari.allowAllCookies", "true");
capability.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);
capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
capability.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);
capability.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, "true");
capability.setCapability("browserstack.ie.enablePopups", "true");
capability.setCapability("browserstack.edge.enablePopups", "true");
capability.setCapability("unexpectedAlertBehaviour", "accept");
capability.setCapability("ignoreProtectedModeSettings", "true");
capability.setCapability("enablePersistentHover", "true");
capability.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, "true");
capability.setCapability("browserstack.use_w3c", "true");
capability.setCapability("browserstack.maskSendKeys", "true");
capability.setCapability("browserstack.networkLogs", "true");
ChromeOptions options = new ChromeOptions();
options.addArguments("--ignore-certificate-errors");
Credentials.PropertyFile.setCapabilities(capability);
driver = new RemoteWebDriver(new URL(Credentials.PropertyFile.getBrowserstackURL()), capability);
}
@Test(priority = 1)
public void AccessPortal() throws InterruptedException, IOException {
methodName = ("Portal Setup Test");
PortalFunctions.AnalyticTestSetup(driver);
PortalFunctions.iFrame(driver);
}
@Test(priority = 2)
public void PortalSignin() throws InterruptedException {
methodName = ("Portal Signin");
PortalFunctions.LoggingIn(driver);
// Retrieve Har
Har har = PortalFunctions.proxy.getHar();
// Write Har to string
java.io.StringWriter writer = new java.io.StringWriter();
try {
har.writeTo(writer);
} catch (IOException e) {
e.printStackTrace();
}
String harAsString = writer.toString();
System.out.println(IndexElements.ANSI_BLUE + "=======CONSOLE=======" + harAsString);
}
@Test(priority = 3)
public void PortalSignOut() throws InterruptedException {
methodName = ("Portal SignOut");
PortalFunctions.LoggingOut(driver);
// Retriecve BS Har
Har har = PortalFunctions.proxy.getHar();
// Write Har to string
java.io.StringWriter writer = new java.io.StringWriter();
try {
har.writeTo(writer);
} catch (IOException e) {
e.printStackTrace();
}
String harAsString = writer.toString();
System.out.println(IndexElements.ANSI_BLUE + "=======CONSOLE=======" + harAsString);
}
@AfterClass
public void TearDown() throws InterruptedException {
System.out.println(IndexElements.ANSI_WHITE + "Closing the browser session.");
PortalFunctions.proxy.stop();
Thread.sleep(10000);
driver.quit();
}
}
Browsermob : 2.1.5 Selenium : 3.6.0 chrome driver 2.32 Chrome : 60.x Try this code. I made few changes to the driver on how options are set and it works fine. Got 22 entries in the log System.setProperty("webdriver.chrome.driver","C:/mystuff/drivers/chrome/chromedriver_232.exe"); BrowserMobProxy proxy = new BrowserMobProxyServer(); proxy.setTrustAllServers(true); proxy.start(0); Proxy seleniumProxy = ClientUtil.createSeleniumProxy(proxy);
// configure it as a desired capability ChromeOptions options = new ChromeOptions(); options.addArguments("--ignore-certificate-errors"); // replace 'somedirectory' with a suitable temp dir on your filesystem options.addArguments("--user-data-dir=somedirectory"); DesiredCapabilities capabilities = new DesiredCapabilities(); options.setCapability(CapabilityType.PROXY, seleniumProxy); options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); // start the browser up WebDriver driver = new ChromeDriver(options); // enable more detailed HAR capture, if desired (see CaptureType for the complete list) proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT); // create a new HAR with the label "yahoo.com" proxy.newHar(); // open yahoo.com driver.get("http://www.lits.com.ua"); driver.get("http://www.google.com.ua"); // get the HAR data Har har = proxy.getHar();
System.out.println("Entries count :"+ har.getLog().getEntries().size()); File harFile = new File("c:/mystuff/harfile.har"); try{ //harFile.mkdirs(); harFile.createNewFile(); har.writeTo(harFile); }catch(Exception e){ e.printStackTrace(); } }
@mediga I tried with the same code what you had mentioned but I get 'page isn't loading - emm_response' error. Har file is empty but I See below in console logs. http://www.google.com/ : 0,0ms http://www.google.com/ : 0,0ms http://www.google.com/ : 0,0ms Entries count :3
If I change below from options to capabilities, page gets loaded but it will not write anything. Har file is empty.
WebDriver driver = new ChromeDriver(options); proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, captureType.RESPONSE_CONTENT); to WebDriver driver = new ChromeDriver(capabilities); proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);
Chrome driver: 76+ Selenium Java: 3.141 browsermob-core:2.1.5
In both cases Har file is empty. Please guide me. Your suggestions will be really helpful.
I also wondered why my entries are empty, even after I imported the the certs into my system.
In the end after many hours of needless investigation I realized my mistake was that I only specified httpProxy
, but forgot to set sslProxy
in my Webdriver's capabilities as well:
proxy {
"proxyType": "manual",
"httpProxy": "BROWSER-MOB-PROXY SERVER",
"sslProxy": "BROWSER-MOB-PROXY SERVER",
}
try this:
yum install -y google-chrome-stable
It works for me
Facing Same issue Please help me out. My Code getting the proper Logs but the Issue I am facing is that on the Browser it shown Now secured. Here is my code-https://github.com/ramitd1995/BrowserMob-proxy-with-Selenium/tree/master
yum install -y google-chrome-stable
Is it for ubuntu