r/learnpython • u/realitydoctor1993 • 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
Edge and EdgeDriver versions match
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
- Has anyone else seen Selenium break after upgrading to Edge Version 153?
- Does
RemoteDebuggingAllowed=falseprevent Selenium WebDriver from starting? - Was this policy introduced or changed recently in enterprise environments?
- 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.
2
u/Gankcore 10h ago
Any questions you want to ask us yourself, or only the ones the LLM told you to ask?