Skip to content

[πŸ› Bug]: selenium.common.exceptions.SessionNotCreatedException; This version of Microsoft Edge WebDriver only supports Microsoft Edge version 138 Current browser version is 140.0.3485.66Β #16320

@oahsiao

Description

@oahsiao

Description

seems the current Selenium not support Microsoft EDGE 140.x.x.x

Reproducible Code

N/A

Debugging Logs

2025-09-12 19:24:50,639 - selenium.webdriver.common.selenium_manager - WARNING - There was an error managing msedgedriver (error sending request for url (https://msedgedriver.azureedge.net/LATEST_RELEASE_140_WINDOWS)); using driver found in the cache
[13020:3120:0912/192451.526:ERROR:components\os_crypt\sync\os_crypt_win.cc:125] Failed to decrypt: The data is invalid. (0xD)
[13020:3120:0912/192451.526:ERROR:components\signin\public\webdata\token_service_table.cc:189] Failed to decrypt token for service AccountId-n-AcxYsqdLf9DGE9Wo1biSE3PyR0HHC1eNktJW2Di-Y

DevTools listening on ws://127.0.0.1:9222/devtools/browser/cdb791f7-ba52-480a-8931-4905bce4e358
Traceback (most recent call last):
  File "M2_APPROVE_BOT.py", line 739, in <module>
    edge_driver = webdriver.Edge(options=options)
  File "C:\Python38\lib\site-packages\selenium\webdriver\edge\webdriver.py", line 45, in __init__
    super().__init__(
  File "C:\Python38\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__
    super().__init__(command_executor=executor, options=options)
  File "C:\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 241, in __init__
    self.start_session(capabilities)
  File "C:\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 329, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
  File "C:\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 404, in execute
    self.error_handler.check_response(response)
  File "C:\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of Microsoft Edge WebDriver only supports Microsoft Edge version 138
Current browser version is 140.0.3485.66 with binary path C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
Stacktrace:
        GetHandleVerifier [0x0x7ff7bb4082b5+23461]
        (No symbol) [0x0x7ff7bb35c3a0]
        GetHandleVerifier [0x0x7ff7bb6801e8+2611928]
        (No symbol) [0x0x7ff7bb16b51d]
        (No symbol) [0x0x7ff7bb16a8df]
        (No symbol) [0x0x7ff7bb1667b1]
        (No symbol) [0x0x7ff7bb161045]
        (No symbol) [0x0x7ff7bb1a5a92]
        (No symbol) [0x0x7ff7bb19a423]
        (No symbol) [0x0x7ff7bb16ea86]
        (No symbol) [0x0x7ff7bb16dd11]
        (No symbol) [0x0x7ff7bb16e8b3]
        (No symbol) [0x0x7ff7bb26dd3d]
        (No symbol) [0x0x7ff7bb27b0c8]
        GetHandleVerifier [0x0x7ff7bb4e80fb+940523]
        GetHandleVerifier [0x0x7ff7bb4f0e51+976705]
        (No symbol) [0x0x7ff7bb369f91]
        (No symbol) [0x0x7ff7bb362974]
        (No symbol) [0x0x7ff7bb362ac3]
        (No symbol) [0x0x7ff7bb354566]
        BaseThreadInitThunk [0x0x7ffe7202e8d7+23]
        RtlUserThreadStart [0x0x7ffe72d5c34c+44]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython BindingsI-defectSomething is not working as intendedJ-awaiting answerQuestion asked of user; a reply moves it to triage againOS-windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions