2014-09-22 47 views
1

在Firefox中,我已将代理设置设置为“无代理”。但是,当我通过Jenkins远程启动它时,它始终设置为“使用系统代理设置”,而不是加载期望的页面。它给'代理服务器拒绝连接'。当我试图通过Jenkins从远程机器执行selenium webdriver脚本时,发生了这种情况。我还没有在硒脚本中定义过任何Firefox配置文件。从远程启动时,Firefox代理设置保持不变

回答

1
After spending a day on this issue I found that just proxy setting might not work. 
It is required update the default proxy type manually in below location. 

    Steps 
    go to 'C:\Program Files (x86)\Mozilla Firefox\defaults\pref' 
    and need to add a entry to 'channel-prefs.js' as below. 

    pref("network.proxy.type", 0); 

    0 = No proxy; 
    1 = Manual proxy configuration; 
    2 = Proxy auto-configuration (PAC); 
    4 = Auto-detect proxy settings. 
+0

为我工作... – Esty 2016-03-21 11:54:52

0

我把这个放到我的mozilla.cfg文件中,它解决了这个问题。

pref("network.proxy.type", 4); 
0

我的电脑不让我改变默认设置,所以我删除了文件并重新启动了Firefox。问题结束!

相关问题