I am able to set proxy settings for Firefox as below.
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy(); proxy.setProxyType(ProxyType.MANUAL)
Try this code:
FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("network.proxy.type", ProxyType.AUTODETECT.ordinal()); WebDriver driver = new FirefoxDriver(profile);
here we have one more solution....it's worked for me