thirdparty proxy

57 views
Skip to first unread message

webtester

unread,
Apr 16, 2012, 5:56:35 PM4/16/12
to webdriver
Hi,

I'm using a thirdparty proxy which is secured by an username and
password.

FirefoxProfile profile = new ProfilesIni().getProfile("proxy");
profile.setPreference("network.proxy.http", "de.p.proxy.com");
profile.setPreference("network.proxy.http_port", "443");

driver = new FirefoxDriver(profile);

An "authentication required" dialog will appear and the username and
password are completed from the firefox profile.
All fine.... but,

How can I accept the "authentication required" dialog ?


Thanks,
R

webtester

unread,
Apr 17, 2012, 1:05:47 AM4/17/12
to webdriver
Now I use this one:

org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(PROXY)
.setFtpProxy(PROXY)
.setSslProxy(PROXY);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);
WebDriver driver = new FirefoxDriver(cap);

Is there a way to use a authenticated proxy ?

Krishnan Mahadevan

unread,
Apr 18, 2012, 12:54:05 AM4/18/12
to webd...@googlegroups.com
I dont know if you can get to work with Proxies that require authentication prior to allowing requests to go through.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


sheetal singh

unread,
Nov 19, 2012, 12:57:06 AM11/19/12
to webd...@googlegroups.com
Did anyone know how to give username/pwd for a third party proxy....
Reply all
Reply to author
Forward
0 new messages