Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

In this article, we will explore the capabilities of the Edge driver with the Selenium framework for automating the Edge browser.

Tanay Kumar Deo
January 12, 2026
When it comes to cross browser testing, the majority of the developers (or automation testers) express a feeling falsely that testing on popular and modern browsers like Google Chrome, Mozilla Firefox, and Safari should be sufficient to deliver a top-notch software or application product. However, it is very crucial to consider browsers like Microsoft Edge, Opera, Brave, etc., when building a strong Selenium strategy.
Microsoft Edge has been the trending news in the last couple of months due to its growing AI capabilities. Hence its market share has increased significantly, and it is right behind Apple’s Safari browser. Therefore, it should be on our list of browsers on which automation testing be performed.
Like all other popular browser vendors, Microsoft also provides a separate and specialized driver named “Edge Driver.” It acts as an intermediator between the Microsoft Edge browser and Selenium framework, thus helping to automate Selenium test cases on the Edge browser. Subsequently, in this article, we will cover the details of Edge Driver, its benefits, features, and how we can run a Selenium test on Edge browser using Edge Driver with an example.
In Selenium testing, the concept of “Selenium WebDriver” plays a vital role in unlocking the full potential of automation on any browser. Microsoft offers a Selenium WebDriver for automating the Microsoft Edge browser called Edge Driver. It acts as a bridge for seamless communication between the Selenium framework and the Microsoft Edge browser.
Whether it be x86, x64 Windows, Mac, or Linux, the Edge driver comes with different versions to support all of them. Any version can be downloaded based on the browser version and the operating system we want to use.
The Edge driver is used to automate the Microsoft Edge browser for Selenium testing purposes. It simulates user interactions like button clicks, text entries, and navigation through different web pages.
When we run any Selenium test case with the Edge driver, we establish two-way communication between the Selenium framework and the Microsoft Edge browser. We utilize this communication information to see if the program’s instructions are sent correctly to the browser. It can be used to extract real-time data from static or dynamic site elements like text, links, or images.
Let’s look at its benefits and features; we’ll uncover how this driver can make a difference in our testing and development efforts. So, get ready to dive in further.
Till now, we have learned about the Edge driver in brief. In this section, we will explore how this driver can revolutionize our testing experience and empower us to achieve greater efficiency and accuracy for automation on the Microsoft Edge browser. Although the Selenium Edge driver comes with a ton of benefits, we have covered a few crucial points in the below list:
All the versions starting with the first supported version of the v79 Microsoft Edge browser, have been implemented in Chromium. Hence major Edge driver versions have support for most of the functionalities of the Chrome driver. In this section, we have tried to list down the most valuable and popular features of the Selenium Edge driver in the following points:
Now that we have gone through the benefits and features of the Selenium Edge driver let’s find out the methods for setting up and integrating the Edge driver with the Selenium framework. For the scope of this article, we will install the Edge driver on the x64 Windows operating system. Also, we will be using the Python programming language with Selenium for automating the Microsoft Edge browser moving onwards.
Before we jump on to the setup and integration of the Edge driver for the Microsoft Edge browser, let’s look at a few of the prerequisites for Selenium Edge Driver to run the Selenium test cases. Subsequently, we will examine all the configurations and programs required for executing the Selenium test cases on the Microsoft Edge browser:
In this article, we will use the VS Code as our code editor. We can download the latest version of VS Code by visiting the official download page for Visual Studio Code and selecting the correct system configuration.
pip install selenium

If you are getting an error while executing this command, there may be a possibility that PIP manager is not installed on your system, which is a must. PIP is a package management system used to install and manage software packages written in Python. However, if you don’t have pip, you can install it using the below command in your terminal:
curl https://bootstrap.pypa.io/get-pip.py | python

Once we have downloaded all the prerequisites for the setup and integration of the Selenium Edge drive, we can move on to the actual installation and setup. The installation and setup of the Edge driver with the Microsoft Edge browser and Selenium involves the following steps:


This executable file is our required application file for the Edge driver. And in the upcoming steps, we will use this executable file in our automation script to integrate the Edge driver with the Selenium framework. Hence it is advisable to remember the file path.
from selenium import webdriver
from selenium.webdriver.edge.service import Service
# Driver Code
if __name__ == '__main__':
# create service object
edgeService = Service(
r"D:\Lambdatest Tools\edgedriver_win64\msedgedriver.exe")
# create webdriver object
edgeDriver = webdriver.Edge(service=edgeService)
# open browser and navigate to the website
edgeDriver.get('https://www.lambdatest.com')

In the above code, we are instructing the Microsoft Edge browser to open the specified web page (https://www.lambdatest.com). At first, we create an “edgeService” object that represents the Microsoft Edge browser using the Service class provided by Selenium.
Next, we assign this service object to the Edge driver in the “edgeDriver” variable. This will be responsible for controlling and executing actions on the browser. Finally, we navigate to the specified web page (https://www.lambdatest.com) with the help of edgeDriver.get(‘https://www.lambdatest.com’) method.
Now if we run this code, it will automate the Microsoft Edge browser and open the specified page in a new browser session, as shown in the image below.

In the previous section, we looked at how to set up and integrate the Edge driver with the Selenium framework. We opened a specified web page by automating the Microsoft Edge browser. Now let’s look at automating some real-world scenarios like filling and submitting forms and testing the behavior of the web app.
In this article, we will automate a simple Todo App for testing the functionality of “Creating todos,” “Marking as completed,” and “deleting todos.” For simplicity and better understanding, we will split this example of automating the Todo app into three parts separately for testing each functionality. So, let’s dive into the example to master the automation testing on Microsoft Edge through the Edge driver.
The first and undeniable functionality to test in any todo app is its capability of creating new todo and displaying it on the todo list. In this example, we will create three todos and add them to the list one by one with a visible time gap.
The first step for writing any automation script is to figure out the proper intuition and algorithm for the particular test case. The testing algorithm that we will follow for this example will be as follows:
Now we can move ahead to create the automation script based on the above algorithm to automate the Microsoft Edge browser through the Selenium Edge driver. For this automation script, we will be using the Python programing language with the Selenium framework in VS Code as discussed earlier. So, let’s create a file named “add_todos.py” and write the automation script as shown below:
from selenium import webdriver
from selenium.webdriver.edge.service import Service
from selenium.webdriver.common.by import By
import time
def add_todos(edgeDriver):
# Add todos one by one
todos = ["Buy groceries", "Finish homework", "Go for a run"]
for todo in todos:
# Find the input field
input_field = edgeDriver.find_element(
By.CSS_SELECTOR, ".add-todo input[type='text']")
# Enter the todo text
input_field.send_keys(todo)
# Introduce a delay for a realistic effect
time.sleep(1)
# Find the "Add Todo" button and click it
add_button = edgeDriver.find_element(
By.CSS_SELECTOR, ".add-todo button")
add_button.click()
# Introduce a delay for a realistic effect
time.sleep(1)
# Create the Edge Driver service
edgeService = Service(
r"D:\Lambdatest Tools\edgedriver_win64\msedgedriver.exe")
# Create the Edge WebDriver
edgeDriver = webdriver.Edge(service=edgeService)
# Open the Todo app
url = "https://tanay-deo.web.app/todo"
edgeDriver.get(url)
# Call the add_todos method
add_todos(edgeDriver)
# Close the browser
edgeDriver.quit()

In the automation script above, we first create an instance of the Edge Driver service as “edgeService,” providing the path to the Microsoft Edge WebDriver executable file. And then, we create an instance of the Edge WebDriver as “edgeDriver,” passing the edgeService object as an argument as we did earlier in the previous sections.
Here the add_todos(edgeDriver) method is mainly responsible for creating multiple todos and adding them to the todo list as described in our algorithm. It selects the input_field and add_button with the help of the find_element and CSS_SELECTOR attributes of the Selenium Edge driver.
Based upon the selection, it first enters the todo content in the input_field and then performs a click operation on add_button to add the todo to the list. We can also verify if our site is working properly with the visible changes on the todo list, as shown in the image below.

In this example, we will move one step ahead and test the functionality for “marking a todo as completed.” To do so, we will mark the first todo in the todo list from the previous example.
The intuition to mark the first todo element as complete will be very simple. It includes identifying the correct list item and then marking it as completed. The testing algorithm that we will follow for this example will be as follows:
Let’s move ahead to create the automation script for automating the task of “Marking a todo as completed” on the Microsoft Edge browser through the Edge driver. We can create a file named “mark_completed_todo.py” and jump into the code as shown below:
from selenium import webdriver
from selenium.webdriver.edge.service import Service
from selenium.webdriver.common.by import By
from add_todos import add_todos
import time
def mark_first_todo_completed(edgeDriver):
# Locate the first todo in the list
first_todo = edgeDriver.find_element(
By.CSS_SELECTOR, ".todo-list li:first-child")
# Click the checkbox button to mark it as completed
checkbox_button = first_todo.find_element(
By.CSS_SELECTOR, ".checkbox-button")
checkbox_button.click()
# Add time delay for ralistic effect
time.sleep(2)
# Create the Edge Driver service
edgeService = Service(
r"D:\Lambdatest Tools\edgedriver_win64\msedgedriver.exe")
# Create the Edge WebDriver
edgeDriver = webdriver.Edge(service=edgeService)
# Open the Todo app
edgeDriver.get("https://tanay-deo.web.app/todo")
# Add todos
add_todos(edgeDriver)
# Mark first todo as completed
mark_first_todo_completed(edgeDriver)
# Close the browser
edgeDriver.quit()

In this automation script for marking the first todo as completed, first, we create a new browser session by the use of the Selenium WebDriver service object and the edgeDriver object similar to the previous example.
The code first calls the add_todos method to ensure that the todo list has some elements. After mark_first_todo_completed method is called which detects the first_todo element with the help of find_element and CSS_SELECTOR attributes of the Edge driver. Similarly, it also finds the checkbox_button to toggle the “Mark as completed” button. Finally, it performs a click option to mark it as completed. And we can verify the result as the color of the todo element changes as shown in the image below.

Now, in this example; we will delete all the todos marked as completed. Doing so will test our web app for the delete todo functionality and ensure that our app is completely functional and responsive with the Microsoft Edge browser. We will write the script for this example in continuation to the previous examples.
Figuring out the testing algorithm for this example is as simple as that of the “Mark First Todo as completed” with just a few modifications. The process involves the selection of all the completed lists and then iterating through them to delete them one by one. The steps for the testing algorithm can be described as follows:
Now let’s start creating the automation script for this particular example as we did in all previous examples. The automation script will be designed based on the testing algorithm we just figured out. So, we can start by creating a new Python file named “delete_todos.py” as shown below:
from selenium import webdriver
from selenium.webdriver.edge.service import Service
from selenium.webdriver.common.by import By
from add_todos import add_todos
from mark_completed_todo import mark_first_todo_completed
import time
def delete_completed_todos(edgeDriver):
# Find all completed todos
completed_todos = edgeDriver.find_elements(
By.CSS_SELECTOR, ".todo-list li.completed")
# Iterate over completed todos and delete them
for todo in completed_todos:
delete_button = todo.find_element(
By.CSS_SELECTOR, ".delete-button")
delete_button.click()
time.sleep(1)
# Create the Edge Driver service
edgeService = Service(
r"D:\Lambdatest Tools\edgedriver_win64\msedgedriver.exe")
# Create the Edge WebDriver
edgeDriver = webdriver.Edge(service=edgeService)
# Open the Todo app
edgeDriver.get("https://tanay-deo.web.app/todo")
# Add todos
add_todos(edgeDriver)
# Mark first todo as completed
mark_first_todo_completed(edgeDriver)
# Delete completed todos
delete_completed_todos(edgeDriver)
# Close the browser
edgeDriver.quit()

In the above example, we first created a new instance of the Microsoft Edge browser to automate the task of deleting the completed todos.
The code first calls the add_todos method to make sure that the todo list has some elements. After that, mark_first_todo_completed method is called. It marks the first element as completed, as discussed in previous examples. Next, the delete_completed_todos method is called; it detects the completed_todos list with the help of find_element and CSS_SELECTOR attributes of the Edge driver applied on the “.todo-list li.completed” class. Similarly, it also finds the delete_button for each completed_todos and performs a click option to delete it from the todo list. And we can verify the result as visible on the automated Microsoft Edge session as shown in the image below.

The complete code for the three examples discussed can be found in this GitHub repo.
Imagine you have a cloud infrastructure with all the WebDrivers and related environments ready to use! A cloud-based digital experience testing platform like TestMu AI allows testers and developers to run automated tests without having to manually set up the device and testing environment.
TestMu AI is a cloud-based platform that helps overcome automation challenges by providing a scalable infrastructure and facilitating seamless collaboration. With TestMu AI, organizations can execute automated tests on multiple browsers, operating systems, and devices simultaneously, reducing the need for an extensive in-house testing setup.
The cloud platform also enables real-time collaboration, allowing teams to work together efficiently, regardless of location. Additionally, TestMu AI’s parallel testing capabilities optimize test run times, enhancing productivity for organizations with large test suites or tight release schedules. By leveraging TestMu AI, businesses can overcome the limitations of local testing environments, achieve faster test execution, and improve overall testing efficiency.
Utilizing the Edge Driver in Selenium testing brings many benefits and features that enhance our automation experience with the Microsoft Edge browser. To understand and master the concept of the Edge driver, we have explored the following topics in our articles:
Did you find this page helpful?
More Related Hubs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance