guyht
unread,Apr 6, 2011, 11:49:42 AM4/6/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
I have tried many different solutions but cannot seem to get a
Selenium backed WebDriver to access a site through an authenticated
web proxy in FireFox.
So far I have so far tried everything I can think of, including the
following:
1 Set the proxy up in FireFox, save the password and tell webdriver to
use that specific profile
2 Set a system wide proxy
3 Use foxy proxy on the 'selenium' profile of firefox
4 Use AutoAuth extension to auto complete dialogs
All the above appear to correctly set the proxy, but authentication
_always_ fails.
The best solution so far has been the following that successfully sets
the proxy, but fails on the authentication.
FirefoxProfile profile = new FirefoxProfile();
Proxy proxy = new Proxy();
proxy.setHttpProxy("proxy.location:8080");
profile.setProxyPreferences(proxy);
return new FirefoxDriver(profile);
When I run the tests, I am _not_ confronted with a BasicAuth dialog,
but just presented with an error that I do not have access to the
specified domain.
Looking at the request headers, they are identical apart from this one
(possibly crucial) entry
Proxy-Authorization Basic xxxxxxxxxxxxxxxxxxxxxxx
I am running firefox 3.6 on Ubuntu.
Thanks
G