How to Setup IE and Edge for automation?

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.

Instructions

1. 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

The browser zoom level should be set to 100%

2. 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 Following command also work same for Edge,
Run this command with Administrator mode - DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0