title: Selenium WebDriver + Java - How to configure proxy settings for Firefox?
body: <p>I'm a rookie test developer using selenium 2.45 and I'm trying to configure my FirefoxDriver to use my company's proxy settings. I am failing to do so :) </p>
  
  <p>I am following the instruction from here to create a profile on-the-fly:</p>
  
  <p><a href="http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp#firefox" rel="nofollow">Using a Proxy for FF</a></p>
  
  <p>My code looks like this:</p>
  
  <pre><code>public static WebDriver driver;
  
  String usedProxy = "http://myproxy:8080";
  
      org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
      proxy.setHttpProxy(usedProxy).setFtpProxy(usedProxy).setSslProxy(usedProxy);
      DesiredCapabilities cap = new DesiredCapabilities();
      cap.setCapability(CapabilityType.PROXY, proxy);
  
      driver = new FirefoxDriver(cap);
      driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
      driver.get("https://TestWebsite.com");
  </code></pre>
  
  <p>I am not receiving any kind of errors but the connection is not working for this browser. When checking Options>Advanced>Network>Connection Settings from Firefox menu, proxy is set to manual but text inputs only contain "http://"</p>
  
  <p>PS: I have a feeling this is relevant but am not sure: TestWebsite.com will load via https only (it's a shopping cart)</p>