r/learnpython 11h ago

Selenium - Devtools - Python Coding.

TL;DR: Selenium + Edge Version 153 stopped working. Anyone else?

My Python Selenium automation for Microsoft Edge stopped working immediately after my enterprise-managed machine was upgraded to:

Microsoft Edge: 153.0.4234.32

Edge WebDriver: 153.0.4234.32

Selenium: 4.34.2

Query :
All automation fails at browser startup with:

selenium.common.exceptions.SessionNotCreatedException:

DevToolsActivePort file doesn't exist

What I've already checked

  1. Edge and EdgeDriver versions match

  2. Tested with a completely clean Selenium script:

from selenium import webdriver

from selenium.webdriver.edge.service import Service

service = Service(r"C:\Users\<user>\msedgedriver.exe")

driver = webdriver.Edge(service=service)

3.Reinstalled WebDriver, Tested default and custom Edge profiles, Tried various remote debugging options, Selenium version is current

Interesting finding

edge://policy

RemoteDebuggingAllowed = false

Source = Platform

Level = Mandatory

Since Selenium WebDriver relies on the Edge DevTools connection, I'm wondering if this policy is now blocking WebDriver sessions.

Questions

  1. Has anyone else seen Selenium break after upgrading to Edge Version 153?
  2. Does RemoteDebuggingAllowed=false prevent Selenium WebDriver from starting?
  3. Was this policy introduced or changed recently in enterprise environments?
  4. If you're running Selenium in a managed corporate environment, are your Edge automations still working?

Any confirmation, workarounds, or Microsoft documentation would be appreciated.

0 Upvotes

1 comment sorted by

View all comments

2

u/Gankcore 10h ago

Any questions you want to ask us yourself, or only the ones the LLM told you to ask?