Selenium webdriver selenium webdriver无法与双代理一起使用
我尝试了下面的代码片段来打开带有双代理的浏览器,但它不起作用,单代理也起作用 有没有办法找到双代理设置/配置Selenium webdriver selenium webdriver无法与双代理一起使用,selenium-webdriver,Selenium Webdriver,我尝试了下面的代码片段来打开带有双代理的浏览器,但它不起作用,单代理也起作用 有没有办法找到双代理设置/配置 FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("network.proxy.type", 1); //profile.setPreference("network.proxy.http", "firstproxy"); //profile.setPreference
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.proxy.type", 1);
//profile.setPreference("network.proxy.http", "firstproxy");
//profile.setPreference("network.proxy.http_port", port_firstproxy);
profile.setPreference("network.proxy.http", "secondproxy");
profile.setPreference("network.proxy.http_port", port_secondproxy);
profile.setEnableNativeEvents(true);
profile.setPreference("intl.accept_languages", "en-us, en");
profile.setPreference("browser.download.folderList", 2);
WebDriver driver = new FirefoxDriver(profile);
driver.get("url");
您可以发布错误日志吗?没有显式生成错误,但没有期望的输出。像url应该打开。但现在,只有浏览器在新窗口中打开,没有url。