Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98449

Selenium- After click a link,IE opens two windows instead of one window

$
0
0

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.

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

Note: Application support only IE10.

script:

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()");   

Login the application and next step to click link

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

Please help me on this.

enter image description here


Viewing all articles
Browse latest Browse all 98449

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>