Skip to content

[🐛 Bug]: Selenium Manager auto install for Edge Driver does not work because the azureedge.net CDN ceased operations #16066

@AjayRH

Description

@AjayRH

Description

Currently, trying to auto install the Edge driver using Selenium manager does not work. The following error occurs with the python binding.

selenium.common.exceptions.WebDriverException: Message: Unsuccessful command executed: path/to/project --browser MicrosoftEdge --language-binding python --output json; code: 65
{'code': 65, 'message': 'error sending request for url (https://msedgedriver.azureedge.net/138.0.3351.95/edgedriver_win64.zip)', 'driver_path': '', 'browser_path': ''}

This occurs because the CDN used for retrieving the Edge driver (azureedge.net) does not exist anymore. See MicrosoftEdge/EdgeWebDriver#183 for more details.

The issue can be temporarily fixed by setting the new CDN URL as a mirror (as per https://www.selenium.dev/documentation/selenium_manager/#configuration) using the environment variable SE_DRIVER_MIRROR_URL.

Here is an example to do it in python

import os
os.environ["SE_DRIVER_MIRROR_URL"] = "https://msedgedriver.microsoft.com"

Reproducible Code

from selenium import webdriver

driver = webdriver.Edge()

ℹ️ Last known working version: 4.34.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-pyPython BindingsD-edgeI-defectSomething is not working as intendedI-regressionSomething was working but we "fixed" itOS-windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions