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 4.0.0.0 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)
driver.get(“https://www.google.com”)
driver.find_element_by_name(“q”).send_keys(“Medium”)
driver.quit()
Note
Make a point to keep IEDriverServer.exe in a similar organizer where the python record is found.
AUTHOR DETAILS:
tibri123.tani@gmail.com | |
First Name | tania |
Middle Name | – |
Last Name | kumari |
Phone | 9871043177 |
Street | Vijay nagar,new delhi Alternative address- prayag, saraswati vihar |
City | Allahabad |
Country | India |
Occupation | government job |
Material | single |
Gender | female |
Birthdate | 25dec1982 |
Nationality | india |
Children | no |