Bypass Security Certificate page in IE

4,362 views
Skip to first unread message

Mattayi

unread,
Mar 29, 2012, 8:40:43 AM3/29/12
to webdriver
Is there any way to bypass security certificate page in IE. I have
seen many posts mentioning about it. But no correct answers. I want to
click on link "Continue to this website(not recommended)." to move to
google login page.

I am attaching screen shot of issue -> http://i.imgur.com/QNr3f.jpg

Also when used "driver.getCurrentUrl()" of above page it is returning
this url -> res://ieframe.dll/invalidcert.htm?SSLError=16777216#https://www.facebook.com/login.php?login_attempt=1

Can anyone please help

Thanks
Mathew



Mattayi

unread,
Mar 29, 2012, 8:45:54 AM3/29/12
to webdriver
Forgot to mention. My jar version is 20.0 and i tried in IE7/9
I also tried this solution ->
driver.navigate().to("javascript:document.getElementById('overridelink').click()");
But not working

Neha

unread,
Mar 29, 2012, 8:47:58 AM3/29/12
to webdriver
Hi,

I think you can add this site to trusted sites and try it.( Go to
internet options, then security tab.Select trusted sites. And add
site)

Thanks
Neha

On Mar 29, 5:40 pm, Mattayi <kuruvila.mat...@gmail.com> wrote:

Mattayi

unread,
Mar 29, 2012, 9:05:01 AM3/29/12
to webdriver
Yeah i tried that. But not working

Karthik

unread,
Mar 29, 2012, 11:40:12 AM3/29/12
to webd...@googlegroups.com
try this 


DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);      
Webdriver driver = new InternetExplorerDriver(capabilities)
if it doesn't work then try self-signing the certificate - if it is your local intranet then I suppose that must be possible..  refer to the link below. 




Regards, Karthik



--
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.


Reply all
Reply to author
Forward
0 new messages