This is a migrated thread and some comments may be shown as answers.

[Solved] Certificate Error in Internet Explorer

4 Answers 37 Views
Telerik Testing Framework
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aaron Hockley
Top achievements
Rank 1
Aaron Hockley asked on 02 Sep 2009, 03:39 PM
I'm attempting to automate some tests against an intranet application that uses https for a connection.  The test server being used does not yet have a "real" certificate and instead is using a local certificate from a host machine.  This causes both Internet Explorer and Firefox to throw a certificate error.

In Firefox, I can add the site as an exception so that it no longer impedes the script.  It doesn't appear there's a way to do that (store the site as a certificate exception) in Internet Explorer 7 or 8.  Does anyone have a workaround? 

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 02 Sep 2009, 09:57 PM
Hello Aaron Hockley,

Did you try adding your test site to IE's list of trusted sites?

All the best,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Aaron Hockley
Top achievements
Rank 1
answered on 02 Sep 2009, 10:02 PM
Yes, adding the URL to the Trusted Sites was the first thing I tried.  It doesn't seem to have an effect on the certificate error.
0
Cody
Telerik team
answered on 02 Sep 2009, 10:16 PM
Hi Aaron Hockley,

I'm afraid I do not know of a way then. I asked a couple of my colleagues and they don't know either.

However you could try creating a dialog handler using the WebAii framework's dialog handling feature so that the certificate error is handled for your... or is does this certificate error prevent any access to the test site in IE? In other words if testing the website manually, is there a way to "accept" the error and continue to the website anyway?

Greetings,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Aaron Hockley
Top achievements
Rank 1
answered on 03 Sep 2009, 09:09 PM
Well, duh, that was too easy.  I simply scripted clicking on the link to bypass the error.

// IE is throwing a certificate error, the next two lines bypass the warning 
var linkOverride = ActiveBrowser.Find.ById<HtmlAnchor>("overridelink"); 
linkOverride.Click(); 
Tags
Telerik Testing Framework
Asked by
Aaron Hockley
Top achievements
Rank 1
Answers by
Cody
Telerik team
Aaron Hockley
Top achievements
Rank 1
Share this question
or