Selenium- After click a link,IE opens two windows instead of one window
<p>I'm working on the secured web application. When I click link within frame, it opened another single window where information to be filled.But when I execute this scenario in selenium, it click the link within frame and system display two windows where window1 shows Blank page with title as "Blank Page- window internet explorer' and window2 shows website security certificate with no title.</p>

<p>When I'm doing manually, it showing single window but during automation, it shows two windows. </p>

<p>Note: Application support only IE10. </p>

<p>script:</p>

<pre><code>System.setProperty("webdriver.ie.driver","./tools/IEDriverServer_32.exe");
    DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
    caps.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
    caps.setCapability("ignoreZoomSetting", true);
    WebDriver driver = new InternetExplorerDriver(caps);
    driver.get(url);
         driver.navigate().to("javascript:document.getElementById('overridelink').click()");   
</code></pre>

<p>Login the application and next step to click link</p>

<p>driver.findElement(By.xpath(".//table[@id='maintable']//a").click();</p>

<p>Please help me on this. </p>

<p><a href="https://i.stack.imgur.com/GqtD9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GqtD9.png" alt="enter image description here"></a></p>