Firefox FF22的Moz代理提示问题

Firefox FF22的Moz代理提示问题,firefox,selenium-webdriver,Firefox,Selenium Webdriver,在FF22上运行我的自动化脚本时,使用公司代理网络,我会得到moz代理提示,提示上写着“代理mox”-proxy://proxy.abc.com:8080 正在请求用户名和密码”。在目不转睛地看之后,我发现下面的一些偏好设置对我不起作用 FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference("network.proxy.type",

在FF22上运行我的自动化脚本时,使用公司代理网络,我会得到moz代理提示,提示上写着“代理mox”-proxy://proxy.abc.com:8080 正在请求用户名和密码”。在目不转睛地看之后,我发现下面的一些偏好设置对我不起作用

FirefoxProfile firefoxProfile = new FirefoxProfile();

            firefoxProfile.setPreference("network.proxy.type",
                    ProxyType.SYSTEM.ordinal());
            firefoxProfile.setPreference("signon.autologin.proxy", true);
            firefoxProfile.setPreference("network.websocket.enabled", false);
            firefoxProfile.setPreference("network.proxy.share_proxy_settings", false);
            firefoxProfile.setPreference("network.automatic-ntlm-auth.allow-proxies", false);
            firefoxProfile.setPreference("network.automatic-ntlm-auth.trusted-uris", "application url");
            firefoxProfile.setPreference("network.negotiate-auth.delegation-uris", "application url");
            firefoxProfile.setPreference("network.negotiate-auth.trusted-uris", "application url");
            firefoxProfile.setEnableNativeEvents(false);
            desiredCapabilities.setCapability(FirefoxDriver.PROFILE,
                    firefoxProfile);

            return new FirefoxDriver(desiredCapabilities);

我正在将FF22与Selenium 2.32版本配合使用。

我知道我正在考虑解决这个问题,但您能尝试使用吗?这是一个相当新的功能,我想它已经在Firefox中运行了。嗨,谢谢你的回复。。firefox会随机提示代理,早些时候在FF17上,我在登录时收到了提示,但在FF22 am中,在点击按钮时也收到了提示,这是不一致的。。