I don’t want to specify the username / password for the proxy server that I have for my office network, I could provide PROXY for the browser:
String PROXY = "localhost:8080"; org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy(); proxy.setHttpProxy(PROXY) .setFtpProxy(PROXY) .setSslProxy(PROXY); DesiredCapabilities cap = new DesiredCapabailities(); cap.setPreference(CapabilityType.PROXY, proxy);
or
user_pref("network.proxy.http", "127.0.0.1"); user_pref("network.proxy.http_port", 8084); user_pref("network.proxy.ssl", "127.0.0.1"); user_pref("network.proxy.ssl_port", 8084); user_pref("network.proxy.no_proxies_on", "localhost:4444"); user_pref("network.proxy.type", 1);
but what I do, it still asks for a password for Webdriver. Note. I can send username / password for htmlunit driver. PLEASE, HELP!
source share