How to Setup IE and Edge for automation?

Table of Contents

Some settings need to done on browser before automation. Mainly for IE, Edge and Safari browser. Chrome and Firefox don’t need any settings for automation.

Setup For IE #

  • Launch IE browser
  • Click on the Settings icon
  • Click on Internet Options
  • Select the Security Tab
  • For each zone (Internet, Local Internet, Trusted Sites & Restricted sites), change the security level to minimum and uncheck the “Enable Protected Mode” checkbox.
    If you do not have the option to minimize the security level for the Restricted sites zone, just uncheck the “Enable Protected Mode” checkbox.
  • Click on Apply
  • Click on Ok

Setup For EDGE #

  • Go to system Settings
  • Select Apps
  • Select App & Features
  • Click on Optional features
    You should see Microsoft WebDriver in the list of optional features, select Microsoft WebDriver and click on Install.

Or the following command also works same for Edge.
Run this command with Administrator mode – DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0