Friday 31 May 2013

Handling untrusted SSL certificates using selenium webdriver in IE?


Some time we get these SSL errors or notification when we try to execute our scripts,At that time we need to by pass that one

SSL error in IE In the following way..













To By pass it just need to add a small piece of code when ever it occurs.

i.e

try {
                driver.get("javascript:document.getElementById('overridelink').click();");
            } catch (Exception e) {
            }

No comments:

Post a Comment