When trying to access the URL through proxy few URL are not getting loaded/working but other couple of URL working fine so the proxy working fine , also I have tried manually through proxy all the URL its working fine.
Below are the details .
public WebDriver getDriver() throws IOException{
com.google.gson.JsonObject json = new com.google.gson.JsonObject();
json.addProperty("proxyType", "MANUAL");
json.addProperty("httpProxy", PROXY);
//json.addProperty("httpProxyPort", PORT);
json.addProperty("sslProxy", PROXY);
FirefoxOptions options = new FirefoxOptions();
//options.addPreference("--log", "INFO");
options.setLogLevel(Level.ALL);
DesiredCapabilities cap = new DesiredCapabilities();
cap=options.addTo(cap);
cap.setCapability("proxy", json);
FirefoxBinary firefoxBinary = new FirefoxBinary(exe);
firefoxBinary.addCommandLineOptions("--headless");
GeckoDriverService service =new GeckoDriverService.Builder(firefoxBinary)
.usingDriverExecutable(new File("/usr/local/bin/geckodriver"))
.usingAnyFreePort()
.usingAnyFreePort()
.build();
service.start();
return driver = new FirefoxDriver(service, cap);
}}
1525210628257 Marionette DEBUG Received DOM event "beforeunload" for "about:blank"
1525210628674 Marionette DEBUG Received DOM event "pagehide" for "about:blank"
1525210628674 Marionette DEBUG Received DOM event "unload" for "about:blank"
1525210667511 addons.productaddons WARN Failed downloading XML, status: 0, reason: timeout
1525210928260 Marionette TRACE 0 <- [1,2,{"error":"timeout","message":"Timeout loading page after 300000ms","stacktrace":"WebDriverError@chrome://marionette/content/error.js:235:5\nTimeoutError@chrome://marionette/content/error.js:505:5\nnotify@chrome://marionette/content/listener.js:381:13\n"},null]