troubleshooting Question

Selenium 2 FireFox Webdriver - SSL This Connection is Untrusted

Avatar of Zuzic
Zuzic asked on
SoftwareProgramming Languages-OtherJava
10 Comments1 Solution1803 ViewsLast Modified:
Anyone able to tell me why I keep getting the "This Connection is Untrusted" page when I run my Selenium 2 Webdriver test against a HTTPS URL?

My configuration is as follows:

* OS: Win7 SP1 64 bit

* Selenium: Java 2.33.0

* Java: 1.6.0_32

* FireFox: 13.0.1

Source code snippet:

File profileDir = new File("C:\\ -- FireFox profile DIR --");

FirefoxProfile profile = new FirefoxProfile(profileDir);

profile.setAcceptUntrustedCertificates(Boolean.TRUE);
profile.setAssumeUntrustedCertificateIssuer(Boolean.FALSE);

WebDriver driver = new FirefoxDriver(profile);
driver.get("https:// -- URL --");

driver.close();

All advice on the web indicates that this would be enough to supress the "This Connection is Untrusted" warning, but I am not having any luck.

Running the browser manually using the same profile does not display the Connection warning page.

Help appreciated
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros