when i launch my application, the page loading is taking more time using BMP but the page loads quickly when i use external web-proxy tools like Fiddler or Charles and off course loads quickly launch by manually. What is the problem in my code. I am using selenium webdriver. Below is my code. I am using Firefox browser. please what could be the issue.
try {
server.start();
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
Proxy proxy = new Proxy();
try {
proxy = server.seleniumProxy();
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.proxy.http",proxy.getHttpProxy().split(":")[0]);
profile.setPreference("network.proxy.http_port",Integer.parseInt(proxy.getSslProxy().split(":")[1]));
profile.setPreference("network.proxy.ssl", proxy.getHttpProxy().split(":")[0]);
profile.setPreference("network.proxy.ssl_port",Integer.parseInt(proxy.getSslProxy().split(":")[1]));
profile.setPreference("network.proxy.type", proxy.getProxyType().ordinal());
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(true);
driver = new FirefoxDriver(profile);
Even i tried with below as well but same result.