# Edge in IE Mode - How to disable pop-up block

**URL:** <https://forum.katalon.com/t/edge-in-ie-mode-how-to-disable-pop-up-block/80974>\
**Category:** Web Testing\
**Tags:** web-testing\
**Created:** [November 26, 2022, 9:15pm UTC](https://forum.katalon.com/t/edge-in-ie-mode-how-to-disable-pop-up-block/80974 "2022-11-26T21:15:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![discover.selenium](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/discover.selenium/32/522_2.png) [@discover.selenium](https://forum.katalon.com/u/discover.selenium)\
**Post date:** [November 26, 2022, 9:15pm UTC](https://forum.katalon.com/t/edge-in-ie-mode-how-to-disable-pop-up-block/80974/1 "2022-11-26T21:15:39Z")

</div>

I am testing a legacy web application, which works only in IE browser.  
I have a requirement to test the legacy application in Edge browser in IE mode. I followed the below document to implement the same.

[https://docs.katalon.com/docs/author/keywords/custom-keywords/execute-test-with-katalon-studio-in-internet-explorer-ie-mode-in-microsoft-edge#configure-internet-options-settings](https://docs.katalon.com/docs/author/keywords/custom-keywords/execute-test-with-katalon-studio-in-internet-explorer-ie-mode-in-microsoft-edge#configure-internet-options-settings)

I am able to invoke the legacy site in Edge browser in IE mode. But I am unable to disable pop-up block via automation.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/0/5/051946b9e32a671739ed3bcf9f9506dfab7fcc81.png)

Below is my keyword.

```auto
@Keyword
def openBrowser(String url) {
String path = RunConfiguration.getProjectDir() + "/driver/IEDriverServer_4.0.exe"
System.setProperty("webdriver.ie.driver", path);

InternetExplorerOptions edgeIe11Options = new InternetExplorerOptions();
Map<String, Object> ops = (Map<String, Object>) edgeIe11Options.getCapability("se:ieOptions");
ops.put("ie.edgechromium", true);

ops.put("ie.edgepath", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
edgeIe11Options.setCapability("ignoreProtectedModeSettings", true);
edgeIe11Options.setCapability("ignoreZoomSetting", true);

edgeIe11Options.setCapability("introduceFlakinessByIgnoringProtectedModeSettings", true);

//	edgeIe11Options.setCapability("initialBrowserUrl",url) // Working

driver = new InternetExplorerDriver(edgeIe11Options);
driver.get(url)

//Mazimize current window		
driver.manage().window().maximize();
DriverFactory.changeWebDriver(driver)
}

```

> **[InternetExplorerOptions](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/ie/InternetExplorerOptions.html)**
>
> declaration: package: org.openqa.selenium.ie, class: InternetExplorerOptions

---

<div class="post-metadata">

**Author:** ![discover.selenium](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/discover.selenium/32/522_2.png) [@discover.selenium](https://forum.katalon.com/u/discover.selenium)\
**Post date:** [November 27, 2022, 1:43pm UTC](https://forum.katalon.com/t/edge-in-ie-mode-how-to-disable-pop-up-block/80974/2 "2022-11-27T13:43:40Z")

</div>

Popup block is a known issue in IE driver and the same is fixed in ie driver v4.3.0.0.

Updating the IE driver solved my problem.

```auto
v4.3.0.0
========
* fix Edge IE mode issue that sometimes cannot get the handle of a newly opened window (#10702)
* Disable popup blocking for Edge in IE Mode (#10869)

```

> <https://github.com/MicrosoftEdge/EdgeWebDriver/issues/36>
>
> HI There,
> 
> Looking into this https://github.com/MicrosoftDocs/edge-developer/i…ssues/1674, would like to know if this resolved or any work around is available. My team is currently testing edge in IE mode but unable to handle popup blocking. setting capability '--disable-popup-blocking'
> 
> Tried with work around mentioned it in https://github.com/MicrosoftDocs/edge-developer/issues/1674. but it didn't work for us!
> 
> \`gpedit (edit group policy) \> administrative templates \> windows components \> internet explorer \> internet control panel \> security page \> internet zone (or your actual zone) \> use popup blocker (it must be enabled with the inner dropdown set to disabled).\`

> <https://github.com/SeleniumHQ/selenium/blob/trunk/cpp/iedriverserver/CHANGELOG>
