title: How to set Proxy Authentication in seleniumWebdriver for Chrome Browser
body: <p>I'm trying to Automate a web application selenium 2.0 [webdriver+java].The web application is currently deployed in our UAT servers on our local network.My test cases are executing, but I have to manually enter the Proxy Authentication details for my Chrome instance at the start of the test execution. I have tried all the solutions provided on stack overflow but still, the authentication message pops out.</p>
  
  <p><a href="https://i.stack.imgur.com/ylnsE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ylnsE.png" alt="enter image description here"></a></p>
  
  <p>This is the code I'm using in my driver initializing process</p>
  
  <p>package com.misyn.ess.ui;</p>
  
  <pre><code>import java.util.Arrays;
  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.remote.DesiredCapabilities;
  
  /**
   *
   * @author User
   */
  public class DriverClass {
  
      private String baseUrl;
      private String driverPath;
      private String driverName;
      private static WebDriver driver;
      private static DriverClass driverClass;
  
          private DriverClass() {
              try {
                  baseUrl = "http://192.168.0.10:8282/ess";
                  driverPath = "E:\\Work_Folder\\SelTools\\chromedriver.exe";
                  driverName = "webdriver.chrome.driver";
  
                  //Set the location of the ChromeDriver
              System.setProperty(driverName, driverPath);
              //Create a new desired capability
              DesiredCapabilities capabilities = DesiredCapabilities.chrome();
              // Create a new proxy object and set the proxy
              Proxy proxy = new Proxy();
              proxy.setHttpProxy("192.168.0.200:3128");
              proxy.setSocksUsername("avishka");
              proxy.setSocksPassword("12345678");
              //Add the proxy to our capabilities 
              capabilities.setCapability("proxy", proxy);
              //Start a new ChromeDriver using the capabilities object we created and added the proxy to
              driver = new ChromeDriver(capabilities);
  
              //Navigation to a url and a look at the traffic logged in fiddler
              driver.navigate().to(baseUrl);
  
  
      //            System.setProperty(driverName, driverPath);
      //            driver = new ChromeDriver();
      //            driver.get(baseUrl);
  
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      }
  </code></pre>
  
  <p>Can anyone give me a solution how to give this proxy username and password thing from the application itself than manually entering details on the pop-up(Authentication), any help would be much appreciated.Thanks</p>
  
  <p>the currently answered one is only for</p>
  
  <p><strong>As of Selenium 3.4 it is still in beta
  Right now implementation is only done for InternetExplorerDriver</strong></p>
  
  <p>Where I'm using selenium 3.0 and Google Chrome as my web browser.</p>