Is it possible to set FF to No Proxy while launching webdriver?

4,383 views
Skip to first unread message

Tarun Bhadauria

unread,
Aug 2, 2011, 6:07:43 AM8/2/11
to webd...@googlegroups.com
When I launch FF 3.6 using Selenium-Server-Standalone-2.2.0.jar on Windows XP, I noticed that my firefox is launched with option - "Use System Proxy Settings"
I want to launch it with option - "No Proxy".

I had a look at proxy examples, like -

FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.proxy.http", "localhost");
profile.setPreference("network.proxy.http_port", "3128");
WebDriver driver = new FirefoxDriver(profile);
But could not figure out how I can make it set to "No Proxy". Any suggestion?

~tarun
http://seleniumsoftwaretesting.blogspot.com/

Tarun Bhadauria

unread,
Aug 2, 2011, 7:19:47 AM8/2/11
to webd...@googlegroups.com
Was easier -

                FirefoxProfile profile = new FirefoxProfile();
                profile.setPreference("network.proxy.type", 0);               
                WebDriver driver = new FirefoxDriver(profile);


~tarun

Reply all
Reply to author
Forward
0 new messages