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.
As the Internet Explorer desktop application is determined to go out of support on June 15, 2022, Microsoft introduces IE mode in Microsoft Edge for organizations that still need Internet Explorer 11 for backward compatibility for legacy websites or...
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.
Below is my keyword.
@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)
}
https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/ie/InternetExplorerOptions.html
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.
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)
opened 05:58AM - 04 Jul 22 UTC
closed 06:16PM - 12 Jul 22 UTC
bug
tracked
ie
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).`
Version number notation guide:
The version number of the IEDriverServer.exe is in the pattern as follows:
major.minor.build.revision
The "major" and "minor" fields are synchronized to releases of the Selenium
project. Changes in the "build" field indicate interim releases made publicly
available via the project downloads page. Changes in "revision" field indicate
private releases checked into the prebuilts directory of the source tree, but
not made generally available on the downloads page.
v4.6.0.0
========
* Enable msIEModeAlwaysWaitForUnload for Edge IE Mode (#11079)
v4.5.0.0
========
* Auto-locate Edge if IE mode requested and location not specified
* If system IE redirects to Edge, automatically use Edge in IE Mode
This file has been truncated. show original
2 Likes