June 25, 2021

Running Microsoft Edge in Internet Explorer Mode

To configure Microsoft Edge Browser to open websites in IE mode follow these steps:

Step 1: Install Microsoft Edge policy template

a) Open -

b) Scroll down the page (till u see a download button). Select the Version, Build, Platform of your Microsoft Edge      installation.

c) Click on GET POLICY FILES. File gets downloaded. This file contains Extract the zip file contents to a folder.

d) Open windows\admx folder. Copy files msedge.admx and msedgeupdate.admx
     to C:\Windows\PolicyDefinitions folder.

e) Again open windows\admx folder. Open the language folder that represents your language — for example, en-US.     Copy files msedge.adml and msedgeupdate.adml to C:\Windows\PolicyDefinitions\en-US folder.

Step 2: Create an Enterprise Site XML list

a) Create a file with the name SiteList.xml in the <Sahi_Installation_Folder>\userdata folder.

b) Open the SiteList.xml file with a text editor and paste the below XML content.

<?xml version="1.0"?>
<site-list version="205">
   <site url="">
   <site url="">
   <site url="">

c) The url attribute for the first site xml node is specified as . By default, sahi.common_domain property is set as in If any other domain is set as Sahi common domain, replace with that domain in the XML content.

d) The url attribute for other site xml nodes is specified as and Replace them with your application domains.

e) Save this SiteList.xml file.

Step 3: Enable IE Mode on Chromium Edge

a) Open Local Group Policy Editor. Navigate to Computer Configuration > Administrative Templates >
 Microsoft Edge

b) Double-click on Configure Internet Explorer integration policy.

     (i) Select the Enabled option to enable IE Mode for Microsoft Edge.

     (ii) Under the Options section, select the Internet Explorer mode from the dropdown menu.

     (iii) Click Apply. Click OK.

c) Double-click the Configure the Enterprise Mode Site List policy.

     (i) Select the Enabled option.

     (ii) In Step 2, we have created SiteList.xml file. Under the Options section, specify the path for this XML file containing            a list of websites you want to render in Internet Explorer mode.
           Example for a local xml file path: file:///C:/Users/user1/sahi_pro/userdata/SiteList.xml

     (iii) Click Apply. Click OK.

Step 4: Specify sites to open in IE mode

a) Create a folder with name as Default in <Sahi_Installation_Folder>\config\edge_profile_template folder.

b) Create a file with the name Preferences (without any extension) in this Default folder.

c) Open this Preferences file with a text editor and paste the below JSON content.


d) By default, sahi.common_domain property is set as in If any other domain is set as Sahi common domain, replace with that domain in the JSON content.

e) Note that and domains have been added to the JSON content. Replace them with your application domains.

f) Save the file.

Step 5: Ensure that profiles are recreated for Microsoft Edge

a) Exit from Sahi if it is running.

b) Delete the folder edge present in <Sahi_Installation_Folder>\userdata\browser folder.

Step 6: Modify browser_types.xml in Sahi

To automate in IE mode, we need to set Sahi as a system proxy. So we need to make the below changes in browser_types.xml.

a) Open <Sahi_Installation>/userdata/config/browser_types.xml file.

b) Search for msedge.exe. Remove --proxy-server=$port from startup options for Microsoft Edge.

c) Specify the value as true for <useSystemProxy> as shown in the example below.

           <displayName>Edge New</displayName>
  --disable-popup-blocking -inprivate --disablebackground-networking
  --disable-component-update --disable-renderer-backgrounding

d) Save and restart Sahi.


  • Sahi common domain will now open in IE mode. So, Microsoft Edge will inhibit Sahi to automate other websites that are opened in Edge mode.
  • To automate in Edge mode, as a workaround modify the Sahi common domain. Set sahi.common_domain property to some other domain let’s say in Restart Sahi.


Continue reading

Mobile App Testing

Automation Testing 101

What's new in Sahi Pro v9.2.1