Automate Edge in IE mode using Selenium

Welcome dear peruser

You might realize that internet pioneer is going to resign and it will as of now not be upheld by Microsoft after June 15, 2022. Here I will give you an answer so you can involve Edge to automate your heritage application in IE mode using selenium and python.

Necessities for selenium python mechanization

Three significant necessities to automate edge in IE mode

Python adaptation 3.7 or more

Selenium bundle adaptation 4.0 or above

Internet pioneer driver IEDriverServer adaptation or above — download from here.

Code Bit

from selenium import webdriver

ie_options = webdriver.IeOptions()

ie_options.attach_to_edge_chrome = Valid

# Add the way of microsoft edge executable in the underneath line of code

ie_options.edge_executable_path = “C:/Program Files(x86)/Microsoft/Edge/Application/msedge.exe”

driver = webdriver.Ie(options=ie_options)





Make a point to keep IEDriverServer.exe in a similar organizer where the python record is found.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.