get_window_handles() not returning expected results in Chromium-based Edge WebDriver (v136/v137)

Toru-san 45 Reputation points
2025-06-04T02:19:43.17+00:00

Hello everyone,

We are encountering an issue with the Edge WebDriver (versions 136.0.3240.104 and 137.0.3296.58) where the get_window_handles() and get_window_handle() methods do not return expected results in certain automation environments.

Environment:

  • OS: Windows 10
  • Edge Browser Versions: 136, 137
  • Edge WebDriver Versions: 136.0.3240.104, 137.0.3296.58
  • Chromium Base: 137.0.7151.56
  • Automation Framework: Selenium-based

Behavior:

  • When using Selenium directly, both methods work as expected — window handles are retrieved and switching between windows is successful.
  • However, in another automation context using the same WebDriver versions, these methods fail to return any window handles.

Questions:

  • Are there any known issues or changes in Chromium or Edge WebDriver around window handle management in versions 136/137?
  • Could this be related to timing, security settings, or recent changes in the WebDriver implementation?

Any insights or suggestions would be greatly appreciated. Thank you!

Kind Regards,

Toru.

Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Toru-san 45 Reputation points
    2025-06-09T04:52:32.3433333+00:00

    We tested this and confirmed that the window handle was obtained correctly with Edge Ver137.0.3296.68 + WebDriver Ver137.0.3296.68.

    Thanks for Advaice.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.