ACCEPT_SSL_CERTS capability type for IE

1,047 views
Skip to first unread message

bsri

unread,
May 18, 2012, 5:36:20 PM5/18/12
to webdriver
DesiredCapabilities ieCap = DesiredCapabilities.internetExplorer();
ieCap.setCapability(CapabilityType.ACCEPT_SSL_CERTS,true);
webdriver=new RemoteWebDriver(ieCap);
This code does not allow me to bypass a https invalid certificate
error. I don't see a resolved thread of email regarding this issue. Is
there a solution?
I am using IE9 on Windows 7.

Krishnan Mahadevan

unread,
May 22, 2012, 7:33:14 AM5/22/12
to webd...@googlegroups.com
In the case of IE, you cannot bypass cert exceptions (due to invalid certs) as how you do it in Firefox.
Open IE, install the cert manually and retry. That is the only option.



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.


bsri

unread,
May 30, 2012, 7:18:13 PM5/30/12
to webd...@googlegroups.com
Thanks, Krishnan.
I took help from my network admin and got rid of the certificate error. Yet, my code is not working and I get the following error : "org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure."

DesiredCapabilities ieCap = DesiredCapabilities.internetExplorer();

ieCap.setCapability(CapabilityType.

ACCEPT_SSL_CERTS,true);

webdriver=new RemoteWebDriver(ieCap);

webdriver.get(https://10.8.8.221:9387/login.jsp);

My webdriver works fine for Firefox and Chrome.
 
 
 
On Tuesday, May 22, 2012 4:33:14 AM UTC-7, Krishnan wrote:
In the case of IE, you cannot bypass cert exceptions (due to invalid certs) as how you do it in Firefox.
Open IE, install the cert manually and retry. That is the only option.



Thanks & Regards
Krishnan Mahadevan

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


On Sat, May 19, 2012 at 3:06 AM, bsri wrote:
DesiredCapabilities ieCap = DesiredCapabilities.internetExplorer();
               ieCap.setCapability(CapabilityType.ACCEPT_SSL_CERTS,true);
               webdriver=new RemoteWebDriver(ieCap);
This code does not allow me to bypass a https invalid certificate
error. I don't see a resolved thread of email regarding this issue. Is
there a solution?
I am using IE9 on Windows 7.

--
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+unsubscribe@googlegroups.com.
On Sat, May 19, 2012 at 3:06 AM, bsri wrote:
DesiredCapabilities ieCap = DesiredCapabilities.internetExplorer();
               ieCap.setCapability(CapabilityType.ACCEPT_SSL_CERTS,true);
               webdriver=new RemoteWebDriver(ieCap);
This code does not allow me to bypass a https invalid certificate
error. I don't see a resolved thread of email regarding this issue. Is
there a solution?
I am using IE9 on Windows 7.

--
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+unsubscribe@googlegroups.com.
On Sat, May 19, 2012 at 3:06 AM, bsri wrote:
DesiredCapabilities ieCap = DesiredCapabilities.internetExplorer();
               ieCap.setCapability(CapabilityType.ACCEPT_SSL_CERTS,true);
               webdriver=new RemoteWebDriver(ieCap);
This code does not allow me to bypass a https invalid certificate
error. I don't see a resolved thread of email regarding this issue. Is
there a solution?
I am using IE9 on Windows 7.

--
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+unsubscribe@googlegroups.com.

Abhi

unread,
May 20, 2013, 10:54:18 AM5/20/13
to webd...@googlegroups.com
Hi

Try this bellow code may help you.

            System.setProperty("webdriver.ie.driver", "lib/IEDriverServer.exe");
            DesiredCapabilities browserCapabillities = DesiredCapabilities.internetExplorer(); 
            browserCapabillities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
            browserCapabillities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
            browserCapabillities.setJavascriptEnabled(true);
            webDriver = new InternetExplorerDriver(browserCapabillities);
            webDriver.manage().window().maximize();
            webDriver.get(sRPF.setUpConfiguration.get("URL"));
            webDriver.get("javascript:document.getElementById('overridelink').click();");

Abhi
Reply all
Reply to author
Forward
0 new messages