0

i have developed a java desktop application(jar) with the help of selenium webdriver.what it basically does is it opens a webpage(https) in a webbrowser in this case ie8 and does some form posting. But its unable to open the webpage(https) in ie unless i add the site in trust site zone of ie. I tried it on other browsers firefox and chome there is no problem,no tursting issues, the webpage is opened directly with ease.Why is it so in internetexplorer ? Why i have to trust the site in ie?

Please help. Thanks in advance

user1254261
  • 142
  • 2
  • 3
  • 12

1 Answers1

-2

On Browser invoke you can add the following code. So as any certificate pop ups will be accepted

 if (sBrowserName.equals("IE")) {
            File file = new File(sBrowserDriver);
            System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
            DesiredCapabilities capab = DesiredCapabilities.internetExplorer();
            capab.setCapability(
                    InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,
                    true);
            webdriver = new InternetExplorerDriver(capab);
Sachin
  • 51
  • 5
  • This is totally incorrect: http://jimevansmusic.blogspot.com.es/2012/08/youre-doing-it-wrong-protected-mode-and.html – Arran Apr 28 '14 at 10:15
  • isnt introduce_flakiness_by_ignoring_security_domains capability is for ignoring protected mode setting? I have already set it.this only ignores protected mode exception – user1254261 Apr 28 '14 at 11:19