Proxy Settings in Selenium driver for IE browser.

1,439 views
Skip to first unread message

mac

unread,
Feb 28, 2011, 2:09:00 AM2/28/11
to Selenium Users
Guys,

Need your help, is there any way we can set proxie setting for
selenium webdriver for IE browser.
As few of my URL's requires different proxies to be set while opening
them with selenium.

Regards,
Mac

yuuzhantar

unread,
Mar 1, 2011, 4:01:27 AM3/1/11
to Selenium Users
try :
import org.openqa.selenium.Proxy;


DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
Proxy proxy = new Proxy();
proxy.setHttpProxy("proxy:3128");
proxy.setSslProxy("proxy:3128");
caps.setCapability("proxy", proxy);

Nitin Rajpal

unread,
Dec 14, 2012, 1:55:53 AM12/14/12
to seleniu...@googlegroups.com
I need to setup socks proxy in IE and chrome. Any IDEA?

Freddy Vega

unread,
Dec 14, 2012, 10:21:50 AM12/14/12
to seleniu...@googlegroups.com
Yes, just pass the parameter | value pair in your desired capabilities hash:

%desired_capabilities = ( remote_server_addr => $grid_server,
                                  browser_name => $browser,
                                  platform => $os_platform,
                                  port => $port,
                                  application_name => $platform . $app_name,
                                  proxy => {
                                      proxyType => 'system'
                                  });
Reply all
Reply to author
Forward
0 new messages