title: How to handle the SSL certificate of Edge browser via browsermob-proxy in selenium
body: <p>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 it.</p>
  
  <p>if((browser.equalsIgnoreCase("Edge"))){</p>
  
  <pre><code>            //browserName = "";
              browser = "Edge";
  
              //set path to Edge.exe
              System.setProperty("webdriver.edge.driver","C:\\edgedriver.exe");
              if(enableProxy == true) {
                  proxy = new ProxyServer();
                  proxy.setTrustAllServers(true); 
  
                  proxy.start();
                  System.out.println( proxy.getPort());
                  Proxy seleniumProxy = new Proxy();
                  EdgeOptions options = new EdgeOptions();
                  String hostIp = Inet4Address.getLocalHost().getHostAddress();
                  seleniumProxy.setHttpProxy(hostIp + ":" + proxy.getPort());
                  seleniumProxy.setSslProxy(hostIp + ":" + proxy.getPort());
  
                  seleniumProxy = ClientUtil.createSeleniumProxy(proxy);
                  options.setProxy(seleniumProxy);
                  options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
  </code></pre>
  
  <p>//                  DesiredCapabilities capabilities = new DesiredCapabilities();
  //                  capabilities.setCapability(CapabilityType.PROXY, proxy);</p>
  
  <pre><code>                proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);
  
                  proxy.newHar();
                  driver = new EdgeDriver(EdgeDriverService.createDefaultService(),options);
  
  
                  //driver = new EdgeDriver(capabilities);
                  driver.manage().window().maximize();
              }else {
  
                  //create Edge instance
                  driver = new EdgeDriver();
                  driver.manage().window().maximize();
              }
          }
  </code></pre>