tag:blogger.com,1999:blog-543267854941927967.post605849023459522021..comments2024-02-24T15:40:28.077+05:30Comments on My Thoughts: Handling Security Cerificates(UntrustedSSLCertificates) in Internet Explorer (IE) using WebDriver(selenium2)Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-543267854941927967.post-36117191895127966392013-10-16T16:44:35.620+05:302013-10-16T16:44:35.620+05:30Got your point. Thank you so much :) for such a ni...Got your point. Thank you so much :) for such a nice explanation.Niyati Soninoreply@blogger.comtag:blogger.com,1999:blog-543267854941927967.post-40648592628355088602013-10-16T14:14:21.309+05:302013-10-16T14:14:21.309+05:30Niyati,
In IE , If we want to cross the security ...Niyati,<br /><br />In IE , If we want to cross the security error page then we have to click on "Continue to this website (not recommended)." link {this link element id is set to "overridelink" in the HTML code } .<br /><br />But if we try to click on this link using regular selenium syntax then it is not working i.e driver.findElement(By.id("overridelink")).click();<br /><br />So here is the workaround :<br /><br />driver.navigate().to("javascript:document.getElementById('overridelink').click()");<br /><br />OR<br /><br />driver.get("javascript:document.getElementById('overridelink').click()");<br /><br />Using javascript we are clicking on element for which id is set to "overridelink".<br /><br />note:<br />When I was writing this post "https://flipkart.com/ " used to have security certificate error. Now there is no cert error :)Vamshi Kurrahttp://www.mythoughts.co.in/noreply@blogger.comtag:blogger.com,1999:blog-543267854941927967.post-39018312550059839142013-10-16T12:22:23.540+05:302013-10-16T12:22:23.540+05:30@Vamshi
Can u pls explain what this statement ex...@Vamshi <br /><br />Can u pls explain what this statement exactly do...! <br /> driver.navigate().to("javascript:document.getElementById('overridelink').click()");Niyati Soninoreply@blogger.com